chore: default enable print sql (#12381)

This commit is contained in:
Huaijin
2026-06-01 09:00:06 +00:00
committed by GitHub
parent e890b83d2c
commit b2445be2cc
3 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -1174,7 +1174,7 @@ pub struct Common {
pub print_key_config: bool,
#[env_config(name = "ZO_PRINT_KEY_EVENT", default = false)]
pub print_key_event: bool,
#[env_config(name = "ZO_PRINT_KEY_SQL", default = false)]
#[env_config(name = "ZO_PRINT_KEY_SQL", default = true)]
pub print_key_sql: bool,
// usage reporting
#[env_config(name = "ZO_USAGE_REPORTING_ENABLED", default = false)]
+1 -1
View File
@@ -162,7 +162,7 @@ fn collect_metrics(metrics_info: &MetricsInfo) -> Vec<Metrics> {
let func = &metrics_info.func;
let plan_with_metrics = DisplayableExecutionPlan::with_metrics(plan.as_ref())
.set_show_statistics(false)
.indent(true)
.indent(false)
.to_string();
let stage = if func() {
if is_super_cluster { 1 } else { 2 }
-2
View File
@@ -157,8 +157,6 @@ pub async fn validate_token(
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_validate_name_rejects_empty() {
let name = "";