Skip to content

Commit

Permalink
fix: print object kind in tracer log
Browse files Browse the repository at this point in the history
  • Loading branch information
drmorr0 committed Nov 5, 2024
1 parent d583027 commit 722aa2a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion sk-store/src/trace_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,15 @@ impl TraceStore {
}

fn append_event(&mut self, ts: i64, obj: &DynamicObject, action: TraceAction) {
info!("{} - {:?} @ {}", obj.namespaced_name(), action, ts);
info!(
"{:?} @ {ts}: {} {}",
action,
obj.types
.clone()
.map(|tm| format!("{}.{}", tm.api_version, tm.kind))
.unwrap_or("<unknown type>".into()),
obj.namespaced_name(),
);

let obj = obj.clone();
match self.events.back_mut() {
Expand Down

0 comments on commit 722aa2a

Please sign in to comment.