mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 20:47:35 +03:00
Add option to have different loglevels per source folder/file
This commit is contained in:
parent
1a6a284bc1
commit
f78257235e
3 changed files with 87 additions and 30 deletions
|
@ -63,6 +63,7 @@ type configOptions struct {
|
|||
|
||||
// DevFlags. These are used to enable/disable debugging and incomplete features
|
||||
DevLogSourceLine bool
|
||||
DevLogLevels map[string]string
|
||||
DevAutoCreateAdminPassword string
|
||||
DevAutoLoginUsername string
|
||||
DevPreCacheAlbumArtwork bool
|
||||
|
@ -115,6 +116,7 @@ func Load() {
|
|||
}
|
||||
|
||||
log.SetLevelString(Server.LogLevel)
|
||||
log.SetLogLevels(Server.DevLogLevels)
|
||||
log.SetLogSourceLine(Server.DevLogSourceLine)
|
||||
log.SetRedacting(Server.EnableLogRedacting)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue