Skip to content

Commit

Permalink
#130: winston bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tima101 committed Jan 18, 2019
1 parent 188aea3 commit dcd5f00
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion book/4-end/server/logs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const winston = require('winston');

const logger = winston.createLogger({
level: process.env.NODE_ENV === 'production' ? 'info' : 'debug',
format: winston.format.simple(),
format: winston.format.combine(winston.format.splat(), winston.format.simple()),
transports: [new winston.transports.Console()],
});

Expand Down
2 changes: 1 addition & 1 deletion book/5-end/server/logs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const winston = require('winston');

const logger = winston.createLogger({
level: process.env.NODE_ENV === 'production' ? 'info' : 'debug',
format: winston.format.simple(),
format: winston.format.combine(winston.format.splat(), winston.format.simple()),
transports: [new winston.transports.Console()],
});

Expand Down
2 changes: 1 addition & 1 deletion book/5-start/server/logs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const winston = require('winston');

const logger = winston.createLogger({
level: process.env.NODE_ENV === 'production' ? 'info' : 'debug',
format: winston.format.simple(),
format: winston.format.combine(winston.format.splat(), winston.format.simple()),
transports: [new winston.transports.Console()],
});

Expand Down
2 changes: 1 addition & 1 deletion book/6-end/server/logs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const winston = require('winston');

const logger = winston.createLogger({
level: process.env.NODE_ENV === 'production' ? 'info' : 'debug',
format: winston.format.simple(),
format: winston.format.combine(winston.format.splat(), winston.format.simple()),
transports: [new winston.transports.Console()],
});

Expand Down
2 changes: 1 addition & 1 deletion book/6-start/server/logs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const winston = require('winston');

const logger = winston.createLogger({
level: process.env.NODE_ENV === 'production' ? 'info' : 'debug',
format: winston.format.simple(),
format: winston.format.combine(winston.format.splat(), winston.format.simple()),
transports: [new winston.transports.Console()],
});

Expand Down
2 changes: 1 addition & 1 deletion book/7-end/server/logs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const winston = require('winston');

const logger = winston.createLogger({
level: process.env.NODE_ENV === 'production' ? 'info' : 'debug',
format: winston.format.simple(),
format: winston.format.combine(winston.format.splat(), winston.format.simple()),
transports: [new winston.transports.Console()],
});

Expand Down
2 changes: 1 addition & 1 deletion book/7-start/server/logs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const winston = require('winston');

const logger = winston.createLogger({
level: process.env.NODE_ENV === 'production' ? 'info' : 'debug',
format: winston.format.simple(),
format: winston.format.combine(winston.format.splat(), winston.format.simple()),
transports: [new winston.transports.Console()],
});

Expand Down
2 changes: 1 addition & 1 deletion book/8-end/server/logs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const winston = require('winston');

const logger = winston.createLogger({
level: process.env.NODE_ENV === 'production' ? 'info' : 'debug',
format: winston.format.simple(),
format: winston.format.combine(winston.format.splat(), winston.format.simple()),
transports: [new winston.transports.Console()],
});

Expand Down
2 changes: 1 addition & 1 deletion book/8-start/server/logs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const winston = require('winston');

const logger = winston.createLogger({
level: process.env.NODE_ENV === 'production' ? 'info' : 'debug',
format: winston.format.simple(),
format: winston.format.combine(winston.format.splat(), winston.format.simple()),
transports: [new winston.transports.Console()],
});

Expand Down
2 changes: 1 addition & 1 deletion server/logs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const winston = require('winston');

const logger = winston.createLogger({
level: process.env.NODE_ENV === 'production' ? 'info' : 'debug',
format: winston.format.simple(),
format: winston.format.combine(winston.format.splat(), winston.format.simple()),
transports: [new winston.transports.Console()],
});

Expand Down

0 comments on commit dcd5f00

Please sign in to comment.