From 5f2f6d72f7b16f880e7faea2950146bc6886d26f Mon Sep 17 00:00:00 2001 From: BohuTANG Date: Fri, 4 Feb 2022 12:21:51 +0800 Subject: [PATCH] Add global log to session settings --- query/src/sessions/session_settings.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/query/src/sessions/session_settings.rs b/query/src/sessions/session_settings.rs index 001ec32334a18..900570e8acf30 100644 --- a/query/src/sessions/session_settings.rs +++ b/query/src/sessions/session_settings.rs @@ -23,6 +23,7 @@ use common_exception::ErrorCode; use common_exception::Result; use common_infallible::RwLock; use common_meta_types::UserSetting; +use common_tracing::tracing; use crate::configs::Config; use crate::sessions::SessionContext; @@ -147,11 +148,13 @@ impl Settings { let global_settings = futures::executor::block_on( user_api.get_settings(&session_ctx.get_current_tenant()), )?; + tracing::info!("Get global settings from metasrv:{:?}", global_settings); for global in &global_settings { for vx in values.iter_mut() { // Overwrite setting from metasrv. if global.name == vx.user_setting.name { + tracing::info!("Over write settings from global setting:{:?}", global); vx.level = ScopeLevel::Global; vx.default_value = global.value.clone(); }