Skip to content

Commit

Permalink
Adjust log level
Browse files Browse the repository at this point in the history
  • Loading branch information
foriequal0 committed Jun 28, 2024
1 parent 26aab2d commit 5e24846
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/service_registry.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use std::sync::atomic::{AtomicBool, Ordering};
use std::sync::{Arc, Mutex};
use tracing::info;

use tracing::debug;

#[derive(Clone)]
pub struct ServiceRegistry {
Expand All @@ -24,7 +25,7 @@ impl ServiceRegistry {

let mut services = self.services.lock().unwrap();
services.push(Arc::clone(&state));
info!(%name, "Service registered");
debug!(%name, "Service registered");
ServiceSignal { state }
}

Expand All @@ -48,7 +49,7 @@ pub struct ServiceSignal {
impl ServiceSignal {
pub fn ready(&self) {
self.state.ready.store(true, Ordering::SeqCst);
info!(%self.state.name, "Service ready");
debug!(%self.state.name, "Service ready");
}
}

Expand Down

0 comments on commit 5e24846

Please sign in to comment.