remove log message.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu
2016-04-11 14:54:37 +08:00
parent a568ed98c7
commit f9d5b91b6c
3 changed files with 6 additions and 9 deletions

View File

@@ -3,7 +3,6 @@ package gopush
import (
"gopkg.in/yaml.v2"
"io/ioutil"
"log"
)
type ConfYaml struct {
@@ -89,16 +88,12 @@ func LoadConfYaml(confPath string) (ConfYaml, error) {
configFile, err := ioutil.ReadFile(confPath)
if err != nil {
log.Printf("Unable to read config file, path: '%s'", confPath)
return config, err
}
err = yaml.Unmarshal([]byte(configFile), &config)
if err != nil {
log.Printf("Unable to Unmarshal config file '%s'", confPath)
return config, err
}