mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-03 19:43:04 +08:00
Revert change, @evan’s fix is better
This commit is contained in:
parent
18a8e5f09a
commit
549ced6128
1 changed files with 0 additions and 10 deletions
|
@ -3,16 +3,6 @@ const {getLogStreams} = require('./log-streams')
|
||||||
const NODE_ENV = process.env.NODE_ENV || 'unknown'
|
const NODE_ENV = process.env.NODE_ENV || 'unknown'
|
||||||
|
|
||||||
function createLogger(name, env = NODE_ENV) {
|
function createLogger(name, env = NODE_ENV) {
|
||||||
if (process.env.USE_CONSOLE_LOG) {
|
|
||||||
console.forAccount = () => {
|
|
||||||
return console;
|
|
||||||
}
|
|
||||||
console.child = () => {
|
|
||||||
return console;
|
|
||||||
}
|
|
||||||
return console;
|
|
||||||
}
|
|
||||||
|
|
||||||
const childLogs = new Map()
|
const childLogs = new Map()
|
||||||
const logger = bunyan.createLogger({
|
const logger = bunyan.createLogger({
|
||||||
name,
|
name,
|
||||||
|
|
Loading…
Reference in a new issue