#[macro_use] the log crate (#775)

This commit is contained in:
0HyperCube 2022-09-08 21:14:01 +01:00 committed by Keavon Chambers
parent 655831eedf
commit 788552e10c
18 changed files with 49 additions and 42 deletions

View file

@ -11,7 +11,7 @@ pub fn panic_hook(info: &panic::PanicInfo) {
let header = "The editor crashed — sorry about that";
let description = "An internal error occurred. Reload the editor to continue. Please report this by filing an issue on GitHub.";
log::error!("{}", info);
error!("{}", info);
JS_EDITOR_HANDLES.with(|instances| {
instances.borrow_mut().values_mut().for_each(|instance| {
@ -74,7 +74,7 @@ impl log::Log for WasmLog {
pub fn translate_key(name: &str) -> Key {
use Key::*;
log::trace!("Key event received: {}", name);
trace!("Key event received: {}", name);
match name {
// Writing system keys