fix: ensure authenticated graceful shutdown exits process and sort live activity feed by timestamp descending
This commit is contained in:
1 parent
3efee96230
commit
91d5565141
5 files changed
+46
-22
No files matched your search
+3
-1
@@ -392,7 +392,9 @@ pub async fn run_server(state: Arc<MemoryState>) -> Result<(), Box<dyn std::erro
|
||||
.join(".gemini/mcp_memory/daemon_error.log");
|
||||
let _ = tokio::fs::write(&log_path, format!("Server crashed: {}\n", e)).await;
|
||||
}
|
||||
Ok(())
|
||||
|
||||
tracing::info!("axum::serve graceful shutdown complete. Terminating process cleanly.");
|
||||
std::process::exit(0);
|
||||
}
|
||||
|
||||
pub fn init_logging(app_name: &str) -> Option<tracing_appender::non_blocking::WorkerGuard> {
|
||||
|
||||
Reference in new issue
Block a user