Skip to content

Commit

Permalink
print main loop count in trace statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil McLean committed Apr 25, 2024
1 parent 2f57ad0 commit a22d016
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bin/electrs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ fn run_server(config: Arc<Config>) -> Result<()> {

main_loop_count.inc();

trace!("signal.wait");
trace!("main_loop_count={}", main_loop_count.get());

if let Err(err) = signal.wait(Duration::from_secs(5), true) {
info!("stopping server: {}", err);
rest_server.stop();
Expand Down

0 comments on commit a22d016

Please sign in to comment.