Replace fmt.Print with log.Error

This commit is contained in:
Deluan 2020-01-15 11:02:27 -05:00
parent e1b0d80f60
commit 5240d83fcf
1 changed files with 1 additions and 2 deletions

View File

@ -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)
}