mirror of
https://seed.radicle.dev/rad:zwTxygwuz5LDGBq255RA2CbNGrz8.git
synced 2026-11-29 06:40:31 +08:00
feat: add logger function of unhandle node eventws
This commit is contained in:
@@ -141,6 +141,7 @@ enum Id {
|
||||
JobRunCreate,
|
||||
JobRunFinished,
|
||||
|
||||
NodeEventNotHandled,
|
||||
NodeEventSourceCreated,
|
||||
NodeEventSourceDisconnected,
|
||||
NodeEventSourceEnd,
|
||||
@@ -355,6 +356,15 @@ pub fn node_event_source_eof(source: &NodeEventSource) {
|
||||
);
|
||||
}
|
||||
|
||||
pub fn node_event_not_handled(event: &Event) {
|
||||
debug!(
|
||||
msg_id = ?Id::NodeEventNotHandled,
|
||||
kind = %Kind::Debug,
|
||||
?event,
|
||||
"node events of this type are not handled"
|
||||
);
|
||||
}
|
||||
|
||||
pub fn ci_event_source_created(source: &CiEventSource) {
|
||||
debug!(
|
||||
msg_id = ?Id::CiEventSourceCreated,
|
||||
|
||||
Reference in New Issue
Block a user