File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
crates/stackable-operator/src/logging Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ impl Default for TracingTarget {
27
27
///
28
28
/// Log output can be copied to a file by setting `{env}_DIRECTORY` (e.g. `FOOBAR_OPERATOR_DIRECTORY`)
29
29
/// 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 ) {
31
31
let filter = match EnvFilter :: try_from_env ( env) {
32
32
Ok ( env_filter) => env_filter,
33
33
_ => EnvFilter :: try_new ( tracing:: Level :: INFO . to_string ( ) )
@@ -79,7 +79,7 @@ mod test {
79
79
// to see them all.
80
80
#[ test]
81
81
pub fn test_default_tracing_level_is_set_to_info ( ) {
82
- super :: initialize_logging ( "NOT_SET" , "test" , & TracingTarget :: None ) ;
82
+ super :: initialize_logging ( "NOT_SET" , "test" , TracingTarget :: None ) ;
83
83
84
84
error ! ( "ERROR level messages should be seen." ) ;
85
85
info ! ( "INFO level messages should also be seen by default." ) ;
You can’t perform that action at this time.
0 commit comments