mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-04 13:07:36 +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
|
package conf
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/cloudsonic/sonic-server/log"
|
"github.com/cloudsonic/sonic-server/log"
|
||||||
|
@ -55,7 +54,7 @@ func LoadFromFile(tomlFile string) {
|
||||||
l := &multiconfig.TOMLLoader{Path: tomlFile}
|
l := &multiconfig.TOMLLoader{Path: tomlFile}
|
||||||
err := l.Load(Sonic)
|
err := l.Load(Sonic)
|
||||||
if err != nil {
|
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)
|
log.SetLogLevelString(Sonic.LogLevel)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue