Skip to content

Commit

Permalink
removed un-necessary logs
Browse files Browse the repository at this point in the history
  • Loading branch information
dinesh-murugiah committed Dec 9, 2022
1 parent 61924de commit 6c38032
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions service/redis/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -356,18 +356,16 @@ func (c *client) SentinelCheckQuorum(ip string) error {
return fmt.Errorf("quorum command result unexpected output")
}
if status == "(error)" && quorum == "NOQUORUM" {
log.Warnf("quorum command result - NOQUORUM")
c.metricsRecorder.RecordRedisOperation(metrics.KIND_SENTINEL, ip, metrics.CHECK_SENTINEL_QUORUM, metrics.SUCCESS, "NOQUORUM")
return fmt.Errorf("quorum Not available")

} else if status == "OK" {
log.Infof("quorum command result - QUORUM")
c.metricsRecorder.RecordRedisOperation(metrics.KIND_SENTINEL, ip, metrics.CHECK_SENTINEL_QUORUM, metrics.SUCCESS, "QUORUM")
return nil
} else {
log.Errorf("quorum command result unexpected !!!")
c.metricsRecorder.RecordRedisOperation(metrics.KIND_SENTINEL, ip, metrics.CHECK_SENTINEL_QUORUM, metrics.FAIL, "quorum command result unexpected output")
return fmt.Errorf("quorum result unexpected %s", status)
log.Errorf("quorum command status unexpected !!!")
c.metricsRecorder.RecordRedisOperation(metrics.KIND_SENTINEL, ip, metrics.CHECK_SENTINEL_QUORUM, metrics.FAIL, "quorum command status unexpected output")
return fmt.Errorf("quorum status unexpected %s", status)
}

}
Expand Down

0 comments on commit 6c38032

Please sign in to comment.