From 8a1a2a674d03a50a0001a1bf7302cdbb53f92358 Mon Sep 17 00:00:00 2001 From: Nick Larsen Date: Wed, 9 Apr 2025 10:33:03 +0200 Subject: [PATCH 1/2] fix: Use `json` file extension for log files --- rust/bundle-builder/src/main.rs | 2 +- rust/operator-binary/src/main.rs | 2 +- rust/user-info-fetcher/src/main.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rust/bundle-builder/src/main.rs b/rust/bundle-builder/src/main.rs index 395b1714..3d165d26 100644 --- a/rust/bundle-builder/src/main.rs +++ b/rust/bundle-builder/src/main.rs @@ -109,7 +109,7 @@ async fn main() -> Result<(), StartupError> { 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 a9a6dd20..5044f997 100644 --- a/rust/operator-binary/src/main.rs +++ b/rust/operator-binary/src/main.rs @@ -98,7 +98,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() })) diff --git a/rust/user-info-fetcher/src/main.rs b/rust/user-info-fetcher/src/main.rs index 00773feb..d08d5458 100644 --- a/rust/user-info-fetcher/src/main.rs +++ b/rust/user-info-fetcher/src/main.rs @@ -126,7 +126,7 @@ async fn main() -> Result<(), StartupError> { 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 84b8ead4011e8b9984e386401b2fd78236d86636 Mon Sep 17 00:00:00 2001 From: Nick Larsen Date: Wed, 9 Apr 2025 10:44:31 +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 6171ef16..69620c86 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,7 +19,12 @@ 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 ([#709]). + [#703]: https://github.com/stackabletech/opa-operator/pull/703 +[#709]: https://github.com/stackabletech/opa-operator/pull/709 ## [25.3.0] - 2025-03-21