We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af6254f commit 66e4d0eCopy full SHA for 66e4d0e
src/main.rs
@@ -18,6 +18,7 @@ use std::sync::Arc;
18
use std::time::Duration;
19
use tokio::runtime::Builder;
20
use tokio::sync::Notify;
21
+use tokio::time::Instant;
22
23
// module name for logging engine
24
const NAME: &str = "<i><bright-black> main: </>";
@@ -153,6 +154,7 @@ async fn tokio_main(
153
154
}
155
156
fn main() {
157
+ let started = Instant::now();
158
let args = Args::parse();
159
logging_init(args.debug, &args.logfile);
160
@@ -209,4 +211,9 @@ fn main() {
209
211
need_restart_cloned,
210
212
tcp_start_cloned,
213
));
214
+
215
+ info!(
216
+ "🚩 aa-proxy-rs terminated, running time: {}",
217
+ format_duration(started.elapsed()).to_string()
218
+ );
219
0 commit comments