Skip to content

Commit ad39cb4

Browse files
committed
Fix logic
1 parent abdce67 commit ad39cb4

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
@@ -97,7 +97,7 @@ function stripIgnoredFields(result: PinoResult): PinoResult {
9797

9898
const _pinoIntegration = defineIntegration((userOptions: DeepPartial<PinoOptions> = {}) => {
9999
const options: PinoOptions = {
100-
autoInstrument: 'autoInstrument' in userOptions ? !!userOptions.autoInstrument : DEFAULT_OPTIONS.autoInstrument,
100+
autoInstrument: userOptions.autoInstrument === false ? userOptions.autoInstrument : DEFAULT_OPTIONS.autoInstrument,
101101
error: { ...DEFAULT_OPTIONS.error, ...userOptions.error },
102102
log: { ...DEFAULT_OPTIONS.log, ...userOptions.log },
103103
};

0 commit comments

Comments
 (0)