Skip to content

Commit

Permalink
Some logging changes
Browse files Browse the repository at this point in the history
  • Loading branch information
iojon committed Nov 21, 2020
1 parent 9adfb6f commit f4176d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/injected/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ unsafe fn attach_stdout(pid: u32) {
AttachConsole(pid);
SetConsoleCtrlHandler(Some(ctrl_handler), 1);
env_logger::Builder::new()
.filter(None, log::LevelFilter::Debug)
.filter(None, log::LevelFilter::Info)
.init();
}

Expand Down
4 changes: 2 additions & 2 deletions crates/injected/src/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ impl Layer {
std::mem::transmute(self.ptr_load_item);
if !s {
let addr: usize = load_item(self.pointer, id, x, y);
log::info!("Spawned {:x?}", addr);
log::debug!("Spawned {:x?}", addr);
Entity { pointer: addr }
} else {
let memory = Memory::new();
Expand All @@ -166,7 +166,7 @@ impl Layer {
let rx = cx + 10.0 * x;
let ry = cy + 5.625 * y;
let addr: usize = load_item(self.pointer, id, rx, ry);
log::info!("Spawned {:x?}", addr);
log::debug!("Spawned {:x?}", addr);
Entity { pointer: addr }
}
}
Expand Down

0 comments on commit f4176d2

Please sign in to comment.