Skip to content

Commit

Permalink
Rename copy paste var name
Browse files Browse the repository at this point in the history
  • Loading branch information
J12934 committed Oct 9, 2024
1 parent a4cbb51 commit 8bd79e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions juice-balancer/src/logger.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import winston from 'winston';

const myFormat = winston.format.printf(({ level, message, timestamp }) => {
const logFormat = winston.format.printf(({ level, message, timestamp }) => {
return `time="${timestamp}" level="${level}" msg="${message}"`;
});

Expand All @@ -17,6 +17,6 @@ const getLogLevelForEnvironment = (env) => {

export const logger = winston.createLogger({
level: getLogLevelForEnvironment(process.env['NODE_ENV']),
format: winston.format.combine(winston.format.timestamp(), myFormat),
format: winston.format.combine(winston.format.timestamp(), logFormat),
transports: [new winston.transports.Console()],
});

0 comments on commit 8bd79e6

Please sign in to comment.