Skip to content

Commit 3693dc9

Browse files
authored
fix: Use json file extension for log files (#709)
* fix: Use `json` file extension for log files * chore: Update changelog
1 parent 8e2c1cf commit 3693dc9

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@ All notable changes to this project will be documented in this file.
1919
and is now set by `ROLLING_LOGS` (or via `--rolling-logs <DIRECTORY>`).
2020
- Replace stackable-operator `print_startup_string` with `tracing::info!` with fields.
2121

22+
### Fixed
23+
24+
- Use `json` file extension for log files ([#709]).
25+
2226
[#703]: https://github.com/stackabletech/opa-operator/pull/703
27+
[#709]: https://github.com/stackabletech/opa-operator/pull/709
2328

2429
## [25.3.0] - 2025-03-21
2530

rust/bundle-builder/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ async fn main() -> Result<(), StartupError> {
109109
Settings::builder()
110110
.with_environment_variable(ENV_VAR_CONSOLE_LOG)
111111
.with_default_level(LevelFilter::INFO)
112-
.file_log_settings_builder(log_directory, "tracing-rs.log")
112+
.file_log_settings_builder(log_directory, "tracing-rs.json")
113113
.with_rotation_period(rotation_period)
114114
.build()
115115
}),

rust/operator-binary/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ async fn main() -> anyhow::Result<()> {
9898
Settings::builder()
9999
.with_environment_variable(ENV_VAR_CONSOLE_LOG)
100100
.with_default_level(LevelFilter::INFO)
101-
.file_log_settings_builder(log_directory, "tracing-rs.log")
101+
.file_log_settings_builder(log_directory, "tracing-rs.json")
102102
.with_rotation_period(rotation_period)
103103
.build()
104104
}))

rust/user-info-fetcher/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ async fn main() -> Result<(), StartupError> {
126126
Settings::builder()
127127
.with_environment_variable(ENV_VAR_CONSOLE_LOG)
128128
.with_default_level(LevelFilter::INFO)
129-
.file_log_settings_builder(log_directory, "tracing-rs.log")
129+
.file_log_settings_builder(log_directory, "tracing-rs.json")
130130
.with_rotation_period(rotation_period)
131131
.build()
132132
}),

0 commit comments

Comments
 (0)