Skip to content

Commit

Permalink
Remove super verbose debug
Browse files Browse the repository at this point in the history
  • Loading branch information
MolotovCherry committed Dec 14, 2023
1 parent 3036fb6 commit f2975ca
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/process_watcher/event_sink.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ impl EventSink {
})
.collect();

debug!("Processes will be looking specifically for bytes:\n{processes:?}");

let sink = Self {
called: called.clone(),
processes,
Expand All @@ -66,13 +64,6 @@ impl EventSink {
let target = unsafe { variant.Anonymous.Anonymous.Anonymous.bstrVal.as_wide() };
let source = unsafe { string.as_wide() };

debug!(
"bstr_equal: comparing src \"{:?}\" and target \"{:?}\"",
String::from_utf16_lossy(source),
String::from_utf16_lossy(target)
);
debug!("bstr_equal: these are bytes:\nsrc: {source:?}, target: {target:?}");

target == source
})
}
Expand All @@ -96,16 +87,9 @@ impl EventSink {
w!("ExecutablePath"),
PCWSTR(process.as_ptr()),
) {
debug!(
"Found newly created executable: {:?}",
String::from_utf16_lossy(process)
);

self.called.store(true, Ordering::Relaxed);
let pid = self.get_pid(&target_instance)?;

debug!("Got pid {pid}, now calling callback");

(self.cb)(CallType::Pid(pid));
}
}
Expand Down

0 comments on commit f2975ca

Please sign in to comment.