Skip to content

Commit 4b8cbc4

Browse files
authored
chore: set strum::Display for LogLevel to uppercase (#808)
* chore: set strum::Display for LogLevel to uppercase * update changelog
1 parent 3e543e6 commit 4b8cbc4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

crates/stackable-operator/CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ All notable changes to this project will be documented in this file.
88

99
### Added
1010

11-
- Derive `strum::Display` for `LogLevel`([#805]).
11+
- Derive `strum::Display` for `LogLevel`([#805], [#808]).
1212

1313
[#805]: https://github.com/stackabletech/operator-rs/pull/805
14+
[#808]: https://github.com/stackabletech/operator-rs/pull/808
1415

1516
## [0.69.0] - 2024-06-03
1617

crates/stackable-operator/src/product_logging/spec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ pub struct AppenderConfig {
301301
}
302302

303303
/// Log levels
304+
// Caution: Changing the output format for strum::Display might break operators relying on this trait.
304305
#[derive(
305306
Clone,
306307
Copy,
@@ -316,7 +317,6 @@ pub struct AppenderConfig {
316317
strum::Display,
317318
)]
318319
#[derivative(Default)]
319-
#[strum(serialize_all = "lowercase")]
320320
pub enum LogLevel {
321321
TRACE,
322322
DEBUG,

0 commit comments

Comments
 (0)