Skip to content

Commit

Permalink
chore: sync wasn't a valid option
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Jan 10, 2024
1 parent 918b43e commit 2ab26b2
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/logger/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,7 @@ export class Logger {
};
if (Boolean(options.useMemoryLogger) || Global.getEnvironmentMode() === Mode.TEST || !enabled) {
this.memoryLogger = new MemoryLogger();
this.pinoLogger = pino(
{
...commonOptions,
sync: true,
},
this.memoryLogger
);
this.pinoLogger = pino(commonOptions, this.memoryLogger);
} else {
this.pinoLogger = pino({
...commonOptions,
Expand All @@ -191,7 +185,6 @@ export class Logger {
getWriteStream(level),
],
},
sync: false,
});
// when a new file logger root is instantiated, we check for old log files.
// but we don't want to wait for it
Expand Down

0 comments on commit 2ab26b2

Please sign in to comment.