summaryrefslogtreecommitdiff
path: root/client/client.go
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-11-28 14:53:39 +0100
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-11-28 14:53:39 +0100
commit1a9e9080548c952cc81c01782eb9f01f6aed459e (patch)
tree7e23e063404f181a59405e628bab121402bd3fc5 /client/client.go
parent5c8886236a0f6fc2c7674f7132ec09a13b65564a (diff)
Log: Define f prefix for log functions to indicate printf like
Diffstat (limited to 'client/client.go')
-rw-r--r--client/client.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/client/client.go b/client/client.go
index d6b04a3..1229a20 100644
--- a/client/client.go
+++ b/client/client.go
@@ -116,7 +116,7 @@ func (client *Client) Register(
// Try to load the previous configuration
if client.Config.Load(&client) != nil {
// This error can be safely ignored, as when the config does not load, the struct will not be filled
- client.Logger.Info("Previous configuration not found")
+ client.Logger.Infof("Previous configuration not found")
}
// Go to the No Server state with the saved servers after we're done
@@ -130,11 +130,11 @@ func (client *Client) Register(
// Check if we are able to fetch discovery, and log if something went wrong
_, discoServersErr := client.DiscoServers()
if discoServersErr != nil {
- client.Logger.Warning("Failed to get discovery servers: %v", discoServersErr)
+ client.Logger.Warningf("Failed to get discovery servers: %v", discoServersErr)
}
_, discoOrgsErr := client.DiscoOrganizations()
if discoOrgsErr != nil {
- client.Logger.Warning("Failed to get discovery organizations: %v", discoOrgsErr)
+ client.Logger.Warningf("Failed to get discovery organizations: %v", discoOrgsErr)
}
return nil
@@ -148,7 +148,7 @@ func (client *Client) Deregister() {
// Save the config
saveErr := client.Config.Save(&client)
if saveErr != nil {
- client.Logger.Info("failed saving configuration, error: %s", types.ErrorTraceback(saveErr))
+ client.Logger.Infof("failed saving configuration, error: %s", types.ErrorTraceback(saveErr))
}
// Empty out the state