summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 0a1cd5a5..d847a2ee 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -6,6 +6,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
use std::sync::Arc;
use tonic::transport::Server;
+ tracing_subscriber::fmt().json().init();
+
let addr = std::env::var("BIND_ADDR")
.unwrap_or_else(|_| "[::1]:50051".to_string())
.parse()?;
@@ -25,7 +27,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
.unwrap(),
);
- println!("Listening on... {addr}");
+ log::info!("Listening on... {addr}");
server.serve(addr).await?;
Ok(())