add caller info
This commit is contained in:
parent
3bcd6664a6
commit
e7af7ce2fd
@ -191,7 +191,7 @@ func (c *Config) Save() error {
|
|||||||
|
|
||||||
b, err := json.Marshal(cfg)
|
b, err := json.Marshal(cfg)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.WithFields(log.Fields{"error": err}).Errorf("")
|
log.WithFields(log.Fields{"error": err, "call": "json.Marshal"}).Errorf("")
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -199,12 +199,12 @@ func (c *Config) Save() error {
|
|||||||
|
|
||||||
f, err := os.Open(*cfgFile)
|
f, err := os.Open(*cfgFile)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.WithFields(log.Fields{"error": err}).Errorf("")
|
log.WithFields(log.Fields{"error": err, "call": "os.Open"}).Errorf("")
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if _, err := f.Write(r); err != nil {
|
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
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// Code generated by version.sh (@generated) DO NOT EDIT.
|
// Code generated by version.sh (@generated) DO NOT EDIT.
|
||||||
package main
|
package main
|
||||||
var githash = "e1806fd"
|
var githash = "3bcd666"
|
||||||
var branch = "master"
|
var branch = "master"
|
||||||
var buildstamp = "2024-11-17_15:23:14"
|
var buildstamp = "2024-11-17_15:33:49"
|
||||||
var commits = "89"
|
var commits = "90"
|
||||||
var version = "e1806fd-b89 - 2024-11-17_15:23:14"
|
var version = "3bcd666-b90 - 2024-11-17_15:33:49"
|
||||||
|
Loading…
Reference in New Issue
Block a user