aboutsummaryrefslogtreecommitdiffstats
path: root/crates/daemon/src/api
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-08-23 23:55:12 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-08-23 23:55:12 +0200
commit8db6c69864ade203be1cacdb3107cbc8636c68b0 (patch)
tree34e80c4d9ab7b40507789ae62a9e7988682b3351 /crates/daemon/src/api
parentdaemon/api: Remove `add_history` (diff)
downloadatuin-main.zip
daemon/api/{start,end}_history: Improve loggingHEADmain
Diffstat (limited to '')
-rw-r--r--crates/daemon/src/api/history.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/daemon/src/api/history.rs b/crates/daemon/src/api/history.rs
index afd823b1..078e8c64 100644
--- a/crates/daemon/src/api/history.rs
+++ b/crates/daemon/src/api/history.rs
@@ -127,7 +127,7 @@ impl HistorySvc for HistoryService {
self.handle.emit(DaemonEvent::HistoryStarted(h.clone()));
let id = h.id;
- tracing::info!(id = id.to_string(), "start history");
+ tracing::info!(id = id.to_string(), "start history called");
self.running.insert(id, h);
let reply = StartHistoryReply {
@@ -147,6 +147,8 @@ impl HistorySvc for HistoryService {
let req = request.into_inner();
let id = HistoryId::from(req.id);
+ tracing::info!(id = id.to_string(), "end history called");
+
if let Some((_, mut history)) = self.running.remove(&id) {
history.exit = req.exit;
history.duration = match proto_duration_to_std(req.duration) {