Skip to content

Commit 36dbfac

Browse files
authored
fix: Use json file extension for log files (#586)
* fix: Use `json` file extension for log files * chore: Update changelog
1 parent e741db8 commit 36dbfac

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

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

26+
### Fixed
27+
28+
- Use `json` file extension for log files ([#586]).
29+
2630
[#572]: https://github.com/stackabletech/secret-operator/pull/572
2731
[#581]: https://github.com/stackabletech/secret-operator/pull/581
32+
[#586]: https://github.com/stackabletech/secret-operator/pull/586
2833

2934
## [25.3.0] - 2025-03-21
3035

rust/olm-deployer/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ async fn main() -> Result<()> {
115115
Settings::builder()
116116
.with_environment_variable(ENV_VAR_CONSOLE_LOG)
117117
.with_default_level(LevelFilter::INFO)
118-
.file_log_settings_builder(log_directory, "tracing-rs.log")
118+
.file_log_settings_builder(log_directory, "tracing-rs.json")
119119
.with_rotation_period(rotation_period)
120120
.build()
121121
}))

rust/operator-binary/src/main.rs

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

0 commit comments

Comments
 (0)