mirror of
https://github.com/project-zot/zot.git
synced 2026-06-17 21:17:58 +08:00
feat: remove usage of zerolog.Logger.Msgf() from zot code (#1382)
Signed-off-by: Nicol Draghici <idraghic@cisco.com>
This commit is contained in:
@@ -158,7 +158,7 @@ func (ms *metricServer) Run() {
|
||||
case bool:
|
||||
ms.reqChan <- ms.enabled
|
||||
default:
|
||||
ms.log.Error().Msgf("unexpected type %T", v)
|
||||
ms.log.Error().Str("type", fmt.Sprintf("%T", v)).Msg("unexpected type")
|
||||
}
|
||||
case <-sendAfter:
|
||||
// Check if we didn't receive a metrics scrape in a while and if so,
|
||||
|
||||
Reference in New Issue
Block a user