Skip to content

Commit 616fcd9

Browse files
committed
Return fatal error when no tracing is initialized before the update
1 parent a11ab44 commit 616fcd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/src/tracing_util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ pub fn update_tracing_log_level(log_level: Level) {
4949
eprintln!("Failed to update log level: {}", e);
5050
}
5151
} else {
52-
eprintln!("Logging system not initialized yet.");
52+
panic!("Fatal error: Logging system not initialized. Ensure initialize_tracing() is called first.");
5353
}
5454
}

0 commit comments

Comments
 (0)