add caller info

This commit is contained in:
shoopea 2024-11-17 16:34:13 +01:00
parent 3bcd6664a6
commit e7af7ce2fd
2 changed files with 7 additions and 7 deletions

View File

@ -191,7 +191,7 @@ func (c *Config) Save() error {
b, err := json.Marshal(cfg)
if err != nil {
log.WithFields(log.Fields{"error": err}).Errorf("")
log.WithFields(log.Fields{"error": err, "call": "json.Marshal"}).Errorf("")
return err
}
@ -199,12 +199,12 @@ func (c *Config) Save() error {
f, err := os.Open(*cfgFile)
if err != nil {
log.WithFields(log.Fields{"error": err}).Errorf("")
log.WithFields(log.Fields{"error": err, "call": "os.Open"}).Errorf("")
return err
}
if _, err := f.Write(r); err != nil {
log.WithFields(log.Fields{"error": err}).Errorf("")
log.WithFields(log.Fields{"error": err, "call": "File.Write"}).Errorf("")
return err
}

View File

@ -1,7 +1,7 @@
// Code generated by version.sh (@generated) DO NOT EDIT.
package main
var githash = "e1806fd"
var githash = "3bcd666"
var branch = "master"
var buildstamp = "2024-11-17_15:23:14"
var commits = "89"
var version = "e1806fd-b89 - 2024-11-17_15:23:14"
var buildstamp = "2024-11-17_15:33:49"
var commits = "90"
var version = "3bcd666-b90 - 2024-11-17_15:33:49"