8000 Removed logging statements · pct960/postgres@9d9ff49 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9d9ff49

Browse files
committed
Removed logging statements
1 parent ac3df71 commit 9d9ff49

File tree

3 files changed

+23
-23
lines changed

3 files changed

+23
-23
lines changed

postgresql.conf.master

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ log_destination = 'stderr' # Valid values are combinations of
448448
# logging_collector to be on.
449449

450450
# This is used when logging to stderr:
451-
logging_collector = on # Enable capturing of stderr, jsonlog,
451+
#logging_collector = on # Enable capturing of stderr, jsonlog,
452452
# and csvlog into log files. Required
453453
# to be on for csvlogs and jsonlogs.
454454
# (change requires restart)
@@ -486,7 +486,7 @@ log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log' # log file name pattern,
486486

487487
# - When to Log -
488488

489-
log_min_messages = info # values in order of decreasing detail:
489+
log_min_messages = error # values in order of decreasing detail:
490490
# debug5
491491
# debug4
492492
# debug3
@@ -530,7 +530,7 @@ log_min_messages = info # values in order of decreasing detail:
530530
# 1.0 logs all such statements, 0.0 never logs
531531

532532

533-
log_transaction_sample_rate = 1.0 # fraction of transactions whose statements
533+
#log_transaction_sample_rate = 1.0 # fraction of transactions whose statements
534534
# are logged regardless of their duration; 1.0 logs all
535535
# statements from all transactions, 0.0 never logs
536536

@@ -544,17 +544,17 @@ log_transaction_sample_rate = 1.0 # fraction of transactions whose statements
544544
#debug_print_parse = on
545545
#debug_print_rewritten = on
546546
#debug_print_plan = off
547-
debug_pretty_print = on
547+
#debug_pretty_print = on
548548
#log_autovacuum_min_duration = 10min # log autovacuum activity;
549549
# -1 disables, 0 logs all actions and
550550
# their durations, > 0 logs only
551551
# actions running at least this number
552552
# of milliseconds.
553-
log_checkpoints = on
554-
log_connections = on
555-
log_disconnections = on
556-
log_duration = on
557-
log_error_verbosity = verbose # terse, default, or verbose messages
553+
#log_checkpoints = on
554+
#log_connections = on
555+
#log_disconnections = on
556+
#log_duration = on
557+
#log_error_verbosity = verbose # terse, default, or verbose messages
558558
#log_hostname = off
559559
#log_line_prefix = '%m [%p] ' # special values:
560560
# %a = application name

src/backend/replication/syncrep.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ void SyncRepROWait(XLogRecPtr lsn)
479479
{
480480
request_keepalive = true;
481481

482-
elog(INFO, "in syncreprowait before, lsn = (%d), flushedlsn=(%d)", lsn, walsndctl->lsn[SYNC_REP_WAIT_FLUSH]);
482+
//elog(INFO, "in syncreprowait before, lsn = (%d), flushedlsn=(%d)", lsn, walsndctl->lsn[SYNC_REP_WAIT_FLUSH]);
483483

484484
SyncRepGetLatestSyncRecPtr(&writePtr, &flushPtr, &applyPtr);
485485

@@ -490,13 +490,13 @@ void SyncRepROWait(XLogRecPtr lsn)
490490
if (walsndctl->lsn[SYNC_REP_WAIT_APPLY] < applyPtr)
491491
walsndctl->lsn[SYNC_REP_WAIT_APPLY] = applyPtr;
492492

493-
elog(INFO, "in syncreprowait after, lsn = (%d), flushedlsn=(%d)", lsn, walsndctl->lsn[SYNC_REP_WAIT_FLUSH]);
493+
//elog(INFO, "in syncreprowait after, lsn = (%d), flushedlsn=(%d)", lsn, walsndctl->lsn[SYNC_REP_WAIT_FLUSH]);
494494

495495
//EDXXX: What happens at new db startup?
496496
if(lsn<=walsndctl->lsn[SYNC_REP_WAIT_FLUSH] || walsndctl->lsn[SYNC_REP_WAIT_FLUSH] == 0)
497497
break;
498498

499-
elog(INFO, "Actually waiting for lsn flush on standby");
499+
//elog(INFO, "Actually waiting for lsn flush on standby");
500500
}
501501

502502
LWLockRelease(SyncRepLock);

src/backend/replication/walsender.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ SendTimeLineHistory(TimeLineHistoryCmd *cmd)
688688
static void
689689
StartReplication(StartReplicationCmd *cmd)
690690
{
691-
elog(INFO, "in start replication");
691+
//elog(INFO, "in start replication");
692692
StringInfoData buf;
693693
XLogRecPtr FlushPtr;
694694
TimeLineID FlushTLI;
@@ -806,11 +806,11 @@ StartReplication(StartReplicationCmd *cmd)
806806

807807
streamingDoneSending = streamingDoneReceiving = false;
808808

809-
elog(INFO, "before entering copy mode");
809+
//elog(INFO, "before entering copy mode");
810810
/* If there is nothing to stream, don't even enter COPY mode */
811811
if (!sendTimeLineIsHistoric || cmd->startpoint < sendTimeLineValidUpto)
812812
{
813-
elog(INFO, "inside copy mode if cond");
813+
//elog(INFO, "inside copy mode if cond");
814814
/*
815815
* When we first start replication the standby will be behind the
816816
* primary. For some applications, for example synchronous
@@ -841,7 +841,7 @@ StartReplication(StartReplicationCmd *cmd)
841841
LSN_FORMAT_ARGS(FlushPtr))));
842842
}
843843

844-
elog(INFO, "started streaming");
844+
//elog(INFO, "started streaming");
845845
/* Start streaming from the requested point */
846846
sentPtr = cmd->startpoint;
847847

@@ -863,7 +863,7 @@ StartReplication(StartReplicationCmd *cmd)
863863
WalSndSetState(WALSNDSTATE_STARTUP);
864864

865865
Assert(streamingDoneSending && streamingDoneReceiving);
866-
elog(INFO, "dome streaming");
866+
//elog(INFO, "done streaming");
867867
}
868868

869869
if (cmd->slotname)
@@ -1433,7 +1433,7 @@ WalSndWriteData(LogicalDecodingContext *ctx, XLogRecPtr lsn, TransactionId xid,
14331433
static void
14341434
ProcessPendingWrites(void)
14351435
{
1436-
elog(INFO, "walsend waiting for a write");
1436+
//elog(INFO, "walsend waiting for a write");
14371437
for (;;)
14381438
{
14391439
long sleeptime;
@@ -1474,7 +1474,7 @@ ProcessPendingWrites(void)
14741474
WalSndShutdown();
14751475
}
14761476

1477-
elog(INFO, "walsender latch set!");
1477+
//elog(INFO, "walsender latch set!");
14781478

14791479
/* reactivate latch so WalSndLoop knows to continue */
14801480
SetLatch(MyLatch);
@@ -1578,7 +1578,7 @@ WalSndWaitForWal(XLogRecPtr loc)
15781578

15791579
for (;;)
15801580
{
1581-
elog(INFO, "in walsndwaitforwal");
1581+
//elog(INFO, "in walsndwaitforwal");
15821582
long sleeptime;
15831583

15841584
/* Clear any already-pending wakeups */
@@ -1676,7 +1676,7 @@ WalSndWaitForWal(XLogRecPtr loc)
16761676
if (pq_is_send_pending())
16771677
wakeEvents |= WL_SOCKET_WRITEABLE;
16781678

1679-
elog(INFO, "Waiting for walsndwait");
1679+
//elog(INFO, "Waiting for walsndwait");
16801680

16811681
WalSndWait(wakeEvents, sleeptime, WAIT_EVENT_WAL_SENDER_WAIT_WAL);
16821682
}
@@ -3657,7 +3657,7 @@ pg_stat_get_wal_senders(PG_FUNCTION_ARGS)
36573657
static void
36583658
WalSndKeepalive(bool requestReply, XLogRecPtr writePtr)
36593659
{
3660-
elog(INFO, "sending replication keepalive");
3660+
//elog(INFO, "sending replication keepalive");
36613661

36623662
/* construct the message... */
36633663
resetStringInfo(&output_message);
@@ -3701,7 +3701,7 @@ WalSndKeepaliveIfNecessary(void)
37013701
wal_sender_timeout / 2);
37023702
if (last_processing >= ping_time || request_keepalive)
37033703
{
3704-
elog(INFO, "sending wakeup probably because keepalive was requested!");
3704+
//elog(INFO, "sending wakeup probably because keepalive was requested!");
37053705
WalSndKeepalive(true, InvalidXLogRecPtr);
37063706

37073707
/* Try to flush pending output to the client */

0 commit comments

Comments
 (0)
0