Skip to content

Commit dc72e2f

Browse files
authored
rename source to ddsource (#6296)
1 parent d27d240 commit dc72e2f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

quickwit/quickwit-cli/src/logger.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ where
359359
///
360360
/// Example output:
361361
/// ```json
362-
/// {"timestamp":"2025-03-23T14:30:45Z","level":"INFO","service":"byoc","source":"byoc","message":"INFO quickwit_search: hello"}
362+
/// {"timestamp":"2025-03-23T14:30:45Z","level":"INFO","service":"byoc","ddsource":"byoc","message":"INFO quickwit_search: hello"}
363363
/// ```
364364
struct DdgFormat {
365365
text_format: Format<Full, ()>,
@@ -403,7 +403,7 @@ where
403403
let escaped_message = serde_json::to_string(message).map_err(|_| fmt::Error)?;
404404
writeln!(
405405
writer,
406-
r#"{{"timestamp":"{timestamp}","level":"{level}","service":"byoc","source":"byoc","message":{escaped_message}}}"#
406+
r#"{{"timestamp":"{timestamp}","level":"{level}","service":"byoc","ddsource":"byoc","message":{escaped_message}}}"#
407407
)
408408
}
409409
}
@@ -629,7 +629,7 @@ mod tests {
629629
assert!(obj.contains_key("timestamp"));
630630
assert!(obj.contains_key("level"));
631631
assert!(obj.contains_key("service"));
632-
assert!(obj.contains_key("source"));
632+
assert!(obj.contains_key("ddsource"));
633633
assert!(obj.contains_key("message"));
634634
}
635635

@@ -638,7 +638,7 @@ mod tests {
638638
let json = capture_ddg_log(|| tracing::info!("hello world"));
639639
assert_eq!(json["level"], "INFO");
640640
assert_eq!(json["service"], "byoc");
641-
assert_eq!(json["source"], "byoc");
641+
assert_eq!(json["ddsource"], "byoc");
642642
assert_eq!(
643643
json["message"].as_str().unwrap(),
644644
format!("INFO {TARGET}: hello world")

0 commit comments

Comments
 (0)