From 15e15601e6d829324feaa9062684587bb1692ee4 Mon Sep 17 00:00:00 2001 From: Nick Larsen Date: Wed, 9 Apr 2025 10:50:44 +0200 Subject: [PATCH 1/2] fix: Use `json` file extension for log files --- rust/olm-deployer/src/main.rs | 2 +- rust/operator-binary/src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/olm-deployer/src/main.rs b/rust/olm-deployer/src/main.rs index e4d7056c..deaa5ac7 100644 --- a/rust/olm-deployer/src/main.rs +++ b/rust/olm-deployer/src/main.rs @@ -115,7 +115,7 @@ async fn main() -> Result<()> { Settings::builder() .with_environment_variable(ENV_VAR_CONSOLE_LOG) .with_default_level(LevelFilter::INFO) - .file_log_settings_builder(log_directory, "tracing-rs.log") + .file_log_settings_builder(log_directory, "tracing-rs.json") .with_rotation_period(rotation_period) .build() })) diff --git a/rust/operator-binary/src/main.rs b/rust/operator-binary/src/main.rs index ba0e6953..22a76f07 100644 --- a/rust/operator-binary/src/main.rs +++ b/rust/operator-binary/src/main.rs @@ -106,7 +106,7 @@ async fn main() -> anyhow::Result<()> { Settings::builder() .with_environment_variable(ENV_VAR_CONSOLE_LOG) .with_default_level(LevelFilter::INFO) - .file_log_settings_builder(log_directory, "tracing-rs.log") + .file_log_settings_builder(log_directory, "tracing-rs.json") .with_rotation_period(rotation_period) .build() })) From cf144ecd155a3ff103fc8a968ecbb2eb3b84bb2e Mon Sep 17 00:00:00 2001 From: Nick Larsen Date: Wed, 9 Apr 2025 10:53:18 +0200 Subject: [PATCH 2/2] chore: Update changelog --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b439f02..a13e30f3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,8 +23,13 @@ All notable changes to this project will be documented in this file. and is now set by `ROLLING_LOGS` (or via `--rolling-logs `). - Replace stackable-operator `print_startup_string` with `tracing::info!` with fields. +### Fixed + +- Use `json` file extension for log files ([#586]). + [#572]: https://github.com/stackabletech/secret-operator/pull/572 [#581]: https://github.com/stackabletech/secret-operator/pull/581 +[#586]: https://github.com/stackabletech/secret-operator/pull/586 ## [25.3.0] - 2025-03-21