Skip to content

Commit

Permalink
Revert "Log statements"
Browse files Browse the repository at this point in the history
This reverts commit 0c5129a.
  • Loading branch information
cleege-kf committed Mar 7, 2023
1 parent 0c5129a commit 95c9a0f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion cmd/sloth/commands/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,6 @@ func (g Generator) GeneratePrometheus(ctx context.Context, slos prometheus.SLOGr
repo := prometheus.NewIOWriterGroupedRulesYAMLRepo(out, g.Logger)
storageSLOs := make([]prometheus.StorageSLO, 0, len(result.PrometheusSLOs))
for _, s := range result.PrometheusSLOs {
g.Logger.Infof(s.SLO.Name)
storageSLOs = append(storageSLOs, prometheus.StorageSLO{
SLO: s.SLO,
Rules: s.SLORules,
Expand Down
5 changes: 1 addition & 4 deletions src/prometheus/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,7 @@ func (i IOWriterGroupedRulesYAMLRepo) StoreSLOs(ctx context.Context, slos []Stor
}

logger := i.logger.WithCtxValues(ctx)
logger.Infof("test 1")
i.logger.Infof("test 2")
logger.WithValues(log.Kv{"groups": len(ruleGroups.Groups)}).Infof("Prometheus rules written 1")
i.logger.WithValues(log.Kv{"groups": len(ruleGroups.Groups)}).Infof("Prometheus rules written 2")
logger.WithValues(log.Kv{"groups": len(ruleGroups.Groups)}).Infof("Prometheus rules written")

return nil
}
Expand Down

0 comments on commit 95c9a0f

Please sign in to comment.