Skip to content

Commit 5b6f097

Browse files
committed
test: Fix rolling log file doc and unit test
This was missed in #995.
1 parent 3fcdf8b commit 5b6f097

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/stackable-telemetry/src/tracing/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ pub enum Error {
149149
/// Settings::builder()
150150
/// .with_environment_variable("TEST_FILE_LOG")
151151
/// .with_default_level(LevelFilter::INFO)
152-
/// .file_log_settings_builder("/tmp/logs")
152+
/// .file_log_settings_builder("/tmp/logs", "tracing-rs.log")
153153
/// .build()
154154
/// )
155155
/// .with_otlp_log_exporter(otlp_log_flag.then(|| {

crates/stackable-telemetry/src/tracing/settings/file_log.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ mod test {
113113
let result = Settings::builder()
114114
.with_environment_variable("hello")
115115
.with_default_level(LevelFilter::DEBUG)
116-
.file_log_settings_builder(PathBuf::from("/logs"), "tracing-rs.json")
116+
.file_log_settings_builder(PathBuf::from("/logs"), "tracing-rs.log")
117117
.with_rotation_period(Rotation::HOURLY)
118118
.with_max_log_files(6)
119119
.build();

0 commit comments

Comments
 (0)