Skip to content

Commit

Permalink
add loggiing
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Ontiveros committed Jul 12, 2023
1 parent dc64d2c commit be9abca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/monitor/cluster/maintenance.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package cluster

import (
"context"
"time"

"github.com/Azure/ARO-RP/pkg/api"
)
Expand Down Expand Up @@ -59,6 +60,7 @@ func (mon *Monitor) emitPucmState(ctx context.Context) error {
mon.emitGauge("cluster.maintenance.pucm", 1, map[string]string{
"state": state.String(),
})
mon.log.Infof("Cluster %s with PUCM state %s and time %s", mon.oc.Name, state.String(), time.Now().String())

return nil
}
Expand Down

0 comments on commit be9abca

Please sign in to comment.