mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 20:38:08 +08:00
refactor(test): add lint rule for messages starting with the component (#2045)
Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com> Signed-off-by: Laurentiu Niculae <niculae.laurentiu1@gmail.com> Signed-off-by: Andrei Aaron <aaaron@luxoft.com>
This commit is contained in:
@@ -87,8 +87,8 @@ func (httpClient *Client) Ping() bool {
|
||||
|
||||
resp, err := httpClient.client.Do(req)
|
||||
if err != nil {
|
||||
httpClient.log.Error().Err(err).Str("url", pingURL.String()).
|
||||
Msg("sync: failed to ping registry")
|
||||
httpClient.log.Error().Err(err).Str("url", pingURL.String()).Str("component", "sync").
|
||||
Msg("failed to ping registry")
|
||||
|
||||
return false
|
||||
}
|
||||
@@ -108,7 +108,7 @@ func (httpClient *Client) Ping() bool {
|
||||
}
|
||||
|
||||
httpClient.log.Error().Str("url", pingURL.String()).Str("body", string(body)).Int("statusCode", resp.StatusCode).
|
||||
Msg("sync: failed to ping registry")
|
||||
Str("component", "sync").Msg("failed to ping registry")
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user