disable output of caller
This commit is contained in:
parent
0ddbdc8f80
commit
6d1d9df282
|
@ -54,10 +54,12 @@ func Init(configInterface interface{}, db *database.DB, bot *bot.Bot) output.Out
|
||||||
}
|
}
|
||||||
|
|
||||||
return &Output{
|
return &Output{
|
||||||
defaults: defaults,
|
defaults: defaults,
|
||||||
files: make(map[string]*os.File),
|
files: make(map[string]*os.File),
|
||||||
formatter: &log.JSONFormatter{},
|
formatter: &log.JSONFormatter{
|
||||||
path: config.Directory,
|
DisableCaller: true,
|
||||||
|
},
|
||||||
|
path: config.Directory,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -141,6 +141,7 @@ func Init(configInterface interface{}, db *database.DB, bot *bot.Bot) output.Out
|
||||||
channels: channels,
|
channels: channels,
|
||||||
client: client,
|
client: client,
|
||||||
formatter: &log.TextFormatter{
|
formatter: &log.TextFormatter{
|
||||||
|
DisableCaller: true,
|
||||||
DisableTimestamp: true,
|
DisableTimestamp: true,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue