Skip to content

Commit

Permalink
SNOW-856233 not to log to the console when easy logging configured to…
Browse files Browse the repository at this point in the history
… log to the file
  • Loading branch information
sfc-gh-knozderko committed Oct 31, 2023
1 parent 8bfb622 commit da900d5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/logger/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,7 @@ function Logger(options)
{
const transports = 'STDOUT' == filePath.toUpperCase()
? [ new (winston.transports.Console)() ]
: [
new (winston.transports.Console)(),
new (winston.transports.File)({filename: filePath})
];
: [ new (winston.transports.File)({filename: filePath}) ];
winstonLogger = new winston.createLogger(
{
transports: transports,
Expand Down

0 comments on commit da900d5

Please sign in to comment.