mirror of
https://seed.radicle.dev/rad:zwTxygwuz5LDGBq255RA2CbNGrz8.git
synced 2026-11-29 14:50:35 +08:00
feat: log NodeEventSource EOF
Signed-off-by: Lars Wirzenius <liw@liw.fi>
This commit is contained in:
@@ -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:#?}");
|
||||
}
|
||||
|
||||
@@ -61,6 +61,7 @@ impl NodeEventSource {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
logger::node_event_source_eof(self);
|
||||
Ok(None)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user