Skip to content

Commit

Permalink
Improve logs
Browse files Browse the repository at this point in the history
  • Loading branch information
subtle-byte committed Jul 15, 2023
1 parent 253f0f1 commit 2d452ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/service/github_stat/github_stat.go
Expand Up @@ -63,12 +63,12 @@ func (s *Service) GetStat(ctx context.Context, user, repo, branch string, filter
if !noLOCProvider {
cacheLocs, err := s.LOCCacher.GetLOCs(ctx, user, repo, branch)
if err != nil {
zerolog.Ctx(ctx).Warn().Err(err).Msg("Failed to get locs from cache, will proceed without it")
zerolog.Ctx(ctx).Warn().Err(err).Msg("Failed to get LOCs from cache, will proceed without it")
} else {
locs = &cacheLocs
}
} else {
zerolog.Ctx(ctx).Info().Msg("GetStat: don't use loc provider (only in this request)")
zerolog.Ctx(ctx).Info().Msg("Proceeding without LOCs cache - as requested")
}
}

Expand Down

0 comments on commit 2d452ff

Please sign in to comment.