Skip to content

Commit

Permalink
周报工具
Browse files Browse the repository at this point in the history
  • Loading branch information
jqiris committed May 15, 2021
1 parent 50a0e97 commit 2c186b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conf/conf.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ var (
func InitConf(filename string) error {
content, err := ioutil.ReadFile(filename)
if err != nil {
logger.Error("read file: %v error:%v", filename, err)
logger.Errorf("read file: %v error:%v", filename, err)
return err
}
err = json.Unmarshal(content, config)
if err != nil {
logger.Error("decode json error: %v", err)
logger.Errorf("decode json error: %v", err)
return err
}
return nil
Expand Down

0 comments on commit 2c186b5

Please sign in to comment.