From e7af7ce2fdc6da6a90fc7caa5ee9b598c11dfa87 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 17 Nov 2024 16:34:13 +0100 Subject: [PATCH] add caller info --- config.go | 6 +++--- version.go | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/config.go b/config.go index e44f282..59a062d 100644 --- a/config.go +++ b/config.go @@ -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 } diff --git a/version.go b/version.go index 82e1406..2cf0dea 100644 --- a/version.go +++ b/version.go @@ -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"