Skip to content

Commit a1eb01e

Browse files
committed
Add dummy match
1 parent 288fa37 commit a1eb01e

File tree

1 file changed

+6
-1
lines changed
  • crates/stackable-operator/src/logging

1 file changed

+6
-1
lines changed

crates/stackable-operator/src/logging/mod.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ impl Default for TracingTarget {
2727
///
2828
/// Log output can be copied to a file by setting `{env}_DIRECTORY` (e.g. `FOOBAR_OPERATOR_DIRECTORY`)
2929
/// to a directory path. This file will be rotated regularly.
30-
pub fn initialize_logging(env: &str, app_name: &str, _tracing_target: TracingTarget) {
30+
pub fn initialize_logging(env: &str, app_name: &str, tracing_target: TracingTarget) {
3131
let filter = match EnvFilter::try_from_env(env) {
3232
Ok(env_filter) => env_filter,
3333
_ => EnvFilter::try_new(tracing::Level::INFO.to_string())
@@ -50,6 +50,11 @@ pub fn initialize_logging(env: &str, app_name: &str, _tracing_target: TracingTar
5050
.with_writer(file_appender)
5151
});
5252

53+
// This match is here just to fail compilation once e.g. otlp is supported
54+
match tracing_target {
55+
TracingTarget::None => (),
56+
}
57+
5358
Registry::default()
5459
.with(filter)
5560
.with(terminal_fmt)

0 commit comments

Comments
 (0)