Skip to content

Commit

Permalink
Fix logger
Browse files Browse the repository at this point in the history
  • Loading branch information
ggodlewski committed Oct 27, 2023
1 parent e573dac commit ab26ac9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/containers/server/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ export async function initErrorHandler(app: express.Application, logger: winston
urlSearchParams.set('redirectTo', '/drive/' + (req['driveId'] || ''));
}
if (process.env.VERSION === 'dev') {
this.logger.warn(err.stack ? err.stack : err.message);
logger.warn(err.stack ? err.stack : err.message);
} else {
this.logger.warn(err.message);
logger.warn(err.message);
}

if (req['driveId']) {
Expand Down

0 comments on commit ab26ac9

Please sign in to comment.