Update logging to the common logging format for all the projects.

This commit is contained in:
2023-10-19 15:19:21 +01:00
parent 9da7c9bec9
commit 2ce7016d7e
11 changed files with 60 additions and 424 deletions
+2 -2
View File
@@ -4,11 +4,11 @@ func (c *BaseClient) cacheLookup(hash string) []byte {
if c.cache.client != nil {
obj, found := c.cache.client.Get(hash)
if found {
c.Logger.Debug(c, "Cache hit;", "hash", hash)
c.Logger.Debug("Cache hit", map[string]interface{}{"hash": hash})
return obj
}
// if error is not nil it means that hash is not present in cache
c.Logger.Debug(c, "Cache miss;", "hash", hash)
c.Logger.Debug("Cache miss", map[string]interface{}{"hash": hash})
}
return nil
}