Skip to content

Commit

Permalink
remove log
Browse files Browse the repository at this point in the history
  • Loading branch information
notoriaga committed Jan 19, 2022
1 parent 7e48208 commit c13493c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions console_backend/src/log_panel.rs
Expand Up @@ -167,15 +167,13 @@ fn write_packet(packet: ConsoleLogPacket, f: &mut File) {
const MIN_SPACES: usize = "CONSOLE".len() + 1;

let spaces = " ".repeat(MIN_SPACES - packet.level.len());
if let Err(e) = writeln!(
let _ = writeln!(
f,
"{timestamp} {level}{spaces}{msg}",
timestamp = packet.timestamp,
level = packet.level,
msg = packet.msg,
) {
error!("error writing console logs to file: {e}");
}
);
}

// Custom formatting of `log::Record` to account for SbpLog values
Expand Down

0 comments on commit c13493c

Please sign in to comment.