@@ -60,8 +60,7 @@ pub use observation::{Observation, ObservationType};
60
60
use quickwit_common:: KillSwitch ;
61
61
pub use spawn_builder:: SpawnContext ;
62
62
use thiserror:: Error ;
63
- use tracing:: info;
64
- use tracing:: log:: warn;
63
+ use tracing:: { info, warn} ;
65
64
pub use universe:: Universe ;
66
65
67
66
pub use self :: actor_context:: ActorContext ;
@@ -93,19 +92,19 @@ fn heartbeat_from_env_or_default() -> Duration {
93
92
match std:: env:: var ( "QW_ACTOR_HEARTBEAT_SECS" ) {
94
93
Ok ( actor_hearbeat_secs_str) => {
95
94
if let Ok ( actor_hearbeat_secs) = actor_hearbeat_secs_str. parse :: < NonZeroU64 > ( ) {
96
- info ! ( "Set the actor heartbeat to {actor_hearbeat_secs} seconds. " ) ;
95
+ info ! ( "set the actor heartbeat to {actor_hearbeat_secs} seconds" ) ;
97
96
return Duration :: from_secs ( actor_hearbeat_secs. get ( ) ) ;
98
97
} else {
99
98
warn ! (
100
- "Failed to parse `QW_ACTOR_HEARTBEAT_SECS={actor_hearbeat_secs_str}` in \
101
- seconds > 0, using default heartbeat (30 seconds). "
99
+ "failed to parse `QW_ACTOR_HEARTBEAT_SECS={actor_hearbeat_secs_str}` in \
100
+ seconds > 0, using default heartbeat (30 seconds)"
102
101
) ;
103
102
} ;
104
103
}
105
104
Err ( std:: env:: VarError :: NotUnicode ( os_str) ) => {
106
105
warn ! (
107
- "Failed to parse `QW_ACTOR_HEARTBEAT_SECS={os_str:?}` in a valid unicode string, \
108
- using default heartbeat (30 seconds). "
106
+ "failed to parse `QW_ACTOR_HEARTBEAT_SECS={os_str:?}` in a valid unicode string, \
107
+ using default heartbeat (30 seconds)"
109
108
) ;
110
109
}
111
110
Err ( std:: env:: VarError :: NotPresent ) => { }
0 commit comments