Adds option to log which parameter status is changed by the client (#550)

This commit is contained in:
Zain Kabani
2023-08-16 14:01:21 -04:00
committed by GitHub
parent bb27586758
commit 3255323bff
4 changed files with 25 additions and 0 deletions

View File

@@ -547,6 +547,9 @@ pub struct Pool {
#[serde(default = "Pool::default_cleanup_server_connections")]
pub cleanup_server_connections: bool,
#[serde(default)] // False
pub log_client_parameter_status_changes: bool,
pub plugins: Option<Plugins>,
pub shards: BTreeMap<String, Shard>,
pub users: BTreeMap<String, User>,
@@ -696,6 +699,7 @@ impl Default for Pool {
server_lifetime: None,
plugins: None,
cleanup_server_connections: true,
log_client_parameter_status_changes: false,
}
}
}
@@ -1157,6 +1161,10 @@ impl Config {
"[pool: {}] Cleanup server connections: {}",
pool_name, pool_config.cleanup_server_connections
);
info!(
"[pool: {}] Log client parameter status changes: {}",
pool_name, pool_config.log_client_parameter_status_changes
);
info!(
"[pool: {}] Plugins: {}",
pool_name,