mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-02 06:28:11 +08:00
#[macro_use] the log crate (#775)
This commit is contained in:
committed by
Keavon Chambers
parent
655831eedf
commit
788552e10c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user