Remove source info from log messages
slog.HandlerOptions.AddSource is a cool feature, but since we moved the logger to a separate package it no longer works. It now always shows source info for the log package, rather than the code that called it. This change removes it.
This commit is contained in:
parent
1ca6b0b402
commit
9f678b6be7
3 changed files with 2 additions and 6 deletions
|
|
@ -13,7 +13,6 @@ type AppConfig struct {
|
|||
LogMaxBackups int `yaml:"log_max_backups"`
|
||||
LogMaxAgeDays int `yaml:"log_max_age_days"`
|
||||
LogCompression bool `yaml:"log_compression"`
|
||||
LogAddSource bool `yaml:"log_add_source"`
|
||||
}
|
||||
|
||||
var config *AppConfig
|
||||
|
|
@ -53,5 +52,4 @@ func setDefaults() {
|
|||
viper.SetDefault("LogMaxBackups", 3)
|
||||
viper.SetDefault("LogMaxAgeDays", 365)
|
||||
viper.SetDefault("LogCompression", false)
|
||||
viper.SetDefault("LogAddSource", true)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue