disable output of caller

This commit is contained in:
Martin/Geno 2019-06-20 14:47:53 +02:00
parent 0ddbdc8f80
commit 6d1d9df282
No known key found for this signature in database
GPG Key ID: 9D7D3C6BFF600C6A
2 changed files with 7 additions and 4 deletions

View File

@ -54,10 +54,12 @@ func Init(configInterface interface{}, db *database.DB, bot *bot.Bot) output.Out
}
return &Output{
defaults: defaults,
files: make(map[string]*os.File),
formatter: &log.JSONFormatter{},
path: config.Directory,
defaults: defaults,
files: make(map[string]*os.File),
formatter: &log.JSONFormatter{
DisableCaller: true,
},
path: config.Directory,
}
}

View File

@ -141,6 +141,7 @@ func Init(configInterface interface{}, db *database.DB, bot *bot.Bot) output.Out
channels: channels,
client: client,
formatter: &log.TextFormatter{
DisableCaller: true,
DisableTimestamp: true,
},
}