mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 20:47:35 +03:00
Replace fmt.Print with log.Error
This commit is contained in:
parent
e1b0d80f60
commit
5240d83fcf
1 changed files with 1 additions and 2 deletions
|
@ -1,7 +1,6 @@
|
|||
package conf
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/cloudsonic/sonic-server/log"
|
||||
|
@ -55,7 +54,7 @@ func LoadFromFile(tomlFile string) {
|
|||
l := &multiconfig.TOMLLoader{Path: tomlFile}
|
||||
err := l.Load(Sonic)
|
||||
if err != nil {
|
||||
fmt.Printf("Error loading %s: %v\n", tomlFile, err)
|
||||
log.Error("Error loading configuration file", "file", tomlFile, err)
|
||||
}
|
||||
log.SetLogLevelString(Sonic.LogLevel)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue