mirror of
https://github.com/neondatabase/neon.git
synced 2026-06-02 04:50:38 +00:00
wip: more logs
This commit is contained in:
@@ -106,11 +106,12 @@ impl WalReceiver {
|
||||
match loop_step_result {
|
||||
Ok(()) => continue,
|
||||
Err(_cancelled) => {
|
||||
trace!("Connection manager loop ended, shutting down");
|
||||
info!("Connection manager loop ended, shutting down");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
info!("Awaiting connection manager state shutdown ...");
|
||||
connection_manager_state.shutdown().await;
|
||||
*loop_status.write().unwrap() = None;
|
||||
info!("task exits");
|
||||
@@ -128,7 +129,7 @@ impl WalReceiver {
|
||||
#[instrument(skip_all, level = tracing::Level::DEBUG)]
|
||||
pub async fn shutdown(self) {
|
||||
debug_assert_current_span_has_tenant_and_timeline_id();
|
||||
debug!("cancelling walreceiver tasks");
|
||||
info!("cancelling walreceiver tasks");
|
||||
self.cancel.cancel();
|
||||
match self.task.await {
|
||||
Ok(()) => debug!("Shutdown success"),
|
||||
|
||||
@@ -66,7 +66,7 @@ pub(super) async fn connection_manager_loop_step(
|
||||
} {
|
||||
Ok(()) => {}
|
||||
Err(new_state) => {
|
||||
debug!(
|
||||
info!(
|
||||
?new_state,
|
||||
"state changed, stopping wal connection manager loop"
|
||||
);
|
||||
@@ -145,7 +145,7 @@ pub(super) async fn connection_manager_loop_step(
|
||||
}
|
||||
TaskEvent::End(walreceiver_task_result) => {
|
||||
match walreceiver_task_result {
|
||||
Ok(()) => debug!("WAL receiving task finished"),
|
||||
Ok(()) => info!("WAL receiving task finished"),
|
||||
Err(e) => error!("wal receiver task finished with an error: {e:?}"),
|
||||
}
|
||||
connection_manager_state.drop_old_connection(false).await;
|
||||
|
||||
Reference in New Issue
Block a user