mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-05 16:10:43 +00:00
chore: default enable print sql (#12381)
This commit is contained in:
@@ -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)]
|
||||
|
||||
@@ -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 }
|
||||
|
||||
@@ -157,8 +157,6 @@ pub async fn validate_token(
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn test_validate_name_rejects_empty() {
|
||||
let name = "";
|
||||
|
||||
Reference in New Issue
Block a user