Downgrade streaming replication debugging message.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Fri, 16 Dec 2022 09:49:02 +0000 (18:49 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Fri, 16 Dec 2022 09:49:02 +0000 (18:49 +0900)
The log line "standby_delay: 54" was actually for debugging and should
have been down graded.  So I have downgraded to DEBUG1 from LOG. Also
tweaked the message to be saner.

src/streaming_replication/pool_worker_child.c

index 826297f38c0e546cde1cb7f89791018d72edc67f..87224de7da067508de1658c81a08f37b15dd585c 100644 (file)
@@ -480,8 +480,8 @@ check_replication_time_lag(void)
                                                if (s)
                                                {
                                                        bkinfo->standby_delay = atol(s);
-                                                       ereport(LOG,
-                                                                       (errmsg("standby_delay: %lu", bkinfo->standby_delay)));
+                                                       ereport(DEBUG1,
+                                                                       (errmsg("standby delay in seconds * 1000000: " UINT64_FORMAT "", bkinfo->standby_delay)));
                                                }
                                                else
                                                        bkinfo->standby_delay = 0;