Skip to content

Commit 61a7587

Browse files
committed
Fix logic
1 parent 60ecb6e commit 61a7587

File tree

1 file changed

+1
-1
lines changed
  • packages/node-core/src/integrations

1 file changed

+1
-1
lines changed

packages/node-core/src/integrations/pino.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ type DeepPartial<T> = {
8383

8484
const _pinoIntegration = defineIntegration((userOptions: DeepPartial<PinoOptions> = {}) => {
8585
const options: PinoOptions = {
86-
autoInstrument: 'autoInstrument' in userOptions ? !!userOptions.autoInstrument : DEFAULT_OPTIONS.autoInstrument,
86+
autoInstrument: userOptions.autoInstrument === false ? userOptions.autoInstrument : DEFAULT_OPTIONS.autoInstrument,
8787
error: { ...DEFAULT_OPTIONS.error, ...userOptions.error },
8888
log: { ...DEFAULT_OPTIONS.log, ...userOptions.log },
8989
};

0 commit comments

Comments
 (0)