diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-04-23 00:48:22 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-04-23 00:48:22 +0300 |
| commit | 40750418049c5125724b004c8f55ae66ca77edcf (patch) | |
| tree | d72ecadb0506c3643ffaa5fe7cf40f22c90d967a /src/client | |
| parent | 3d6f3e78624f1308a360cbf02eeca3fec2434436 (diff) | |
feat(logging): add robust rotating support logs
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/mod.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/mod.rs b/src/client/mod.rs index 66e11ad2..0ca2fe0f 100644 --- a/src/client/mod.rs +++ b/src/client/mod.rs @@ -258,6 +258,7 @@ pub fn run_client() -> io::Result<()> { let toast_config = loaded_config.config.ui.toast; let socket_path = client_socket_path(); + crate::logging::startup("client"); info!(path = %socket_path.display(), "connecting to server"); // Try to connect to the server. @@ -320,7 +321,7 @@ pub fn run_client() -> io::Result<()> { if let Err(err) = result { eprintln!("herdr: {err}"); rt.shutdown_timeout(Duration::from_millis(100)); - info!("herdr client exiting"); + crate::logging::shutdown("client"); if matches!( err, @@ -335,7 +336,7 @@ pub fn run_client() -> io::Result<()> { } rt.shutdown_timeout(Duration::from_millis(100)); - info!("herdr client exiting"); + crate::logging::shutdown("client"); Ok(()) } |
