mirror of
https://github.com/postgres/postgres.git
synced 2025-11-22 12:22:45 +03:00
Reduce log level for background worker events from LOG to DEBUG1.
Per discussion, LOG is just too chatty for something that will happen as routinely as this. Pavel Stehule
This commit is contained in:
@@ -341,7 +341,7 @@ BackgroundWorkerStateChange(void)
|
||||
rw->rw_terminate = false;
|
||||
|
||||
/* Log it! */
|
||||
ereport(LOG,
|
||||
ereport(DEBUG1,
|
||||
(errmsg("registering background worker \"%s\"",
|
||||
rw->rw_worker.bgw_name)));
|
||||
|
||||
@@ -370,7 +370,7 @@ ForgetBackgroundWorker(slist_mutable_iter *cur)
|
||||
slot = &BackgroundWorkerData->slot[rw->rw_shmem_slot];
|
||||
slot->in_use = false;
|
||||
|
||||
ereport(LOG,
|
||||
ereport(DEBUG1,
|
||||
(errmsg("unregistering background worker \"%s\"",
|
||||
rw->rw_worker.bgw_name)));
|
||||
|
||||
@@ -741,7 +741,7 @@ RegisterBackgroundWorker(BackgroundWorker *worker)
|
||||
static int numworkers = 0;
|
||||
|
||||
if (!IsUnderPostmaster)
|
||||
ereport(LOG,
|
||||
ereport(DEBUG1,
|
||||
(errmsg("registering background worker \"%s\"", worker->bgw_name)));
|
||||
|
||||
if (!process_shared_preload_libraries_in_progress)
|
||||
|
||||
Reference in New Issue
Block a user