feat: log NodeEventSource EOF

Signed-off-by: Lars Wirzenius <liw@liw.fi>
This commit is contained in:
Lars Wirzenius
2024-10-08 14:29:22 +03:00
parent d2324ca652
commit 593cedeaad
2 changed files with 9 additions and 0 deletions
+8
View File
@@ -87,6 +87,14 @@ pub fn node_event_source_got_event(event: &Event) {
);
}
pub fn node_event_source_eof(source: &NodeEventSource) {
info!(
slog_scope::logger(),
"node event source end of file on control socket";
"node_event" => format!("{source:#?}")
);
}
pub fn loaded_config(config: &Config) {
debug!(slog_scope::logger(), "loaded configuration {config:#?}");
}
+1
View File
@@ -61,6 +61,7 @@ impl NodeEventSource {
}
}
} else {
logger::node_event_source_eof(self);
Ok(None)
}
}