Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

Commit ee111ae

Browse files
Daemon: downgrade overly chatty "standby config" messages to Debug level
1 parent a5521f2 commit ee111ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pgwatch2/pgwatch2.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5784,11 +5784,11 @@ func main() {
57845784
continue
57855785
} else if lastKnownStatusInRecovery != ver.IsInRecovery {
57865786
if ver.IsInRecovery && len(host.MetricsStandby) > 0 {
5787-
log.Warningf("Switching metrics collection for \"%s\" to standby config...", db_unique)
5787+
log.Debugf("[%s] Switching metrics collection to standby config...", db_unique)
57885788
metric_config = host.MetricsStandby
57895789
hostLastKnownStatusInRecovery[db_unique] = true
57905790
} else {
5791-
log.Warningf("Switching metrics collection for \"%s\" to primary config...", db_unique)
5791+
log.Debugf("[%s] Using primary config for metrics collection as no standby config defined for host...", db_unique)
57925792
metric_config = host.Metrics
57935793
hostLastKnownStatusInRecovery[db_unique] = false
57945794
SetRecoveryIgnoredDBState(db_unique, false)

0 commit comments

Comments
 (0)