mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 04:27:37 +03:00
Log artwork origin (tag, file, etc...)
This commit is contained in:
parent
92b42b35b3
commit
e0da1d1589
2 changed files with 29 additions and 27 deletions
|
@ -252,6 +252,8 @@ func addFields(logger *logrus.Entry, keyValuePairs []interface{}) *logrus.Entry
|
|||
switch v := keyValuePairs[i+1].(type) {
|
||||
case time.Duration:
|
||||
logger = logger.WithField(name, ShortDur(v))
|
||||
case fmt.Stringer:
|
||||
logger = logger.WithField(name, v.String())
|
||||
default:
|
||||
logger = logger.WithField(name, v)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue