logging: Use in merged functions
This commit is contained in:
@ -155,7 +155,10 @@ pub fn generate_keymap(
|
|||||||
keycodes.next().expect("Erase key has no keycode"),
|
keycodes.next().expect("Erase key has no keycode"),
|
||||||
)?;
|
)?;
|
||||||
if let Some(_) = keycodes.next() {
|
if let Some(_) = keycodes.next() {
|
||||||
eprintln!("BUG: Erase key has multiple keycodes");
|
log_print!(
|
||||||
|
logging::Level::Bug,
|
||||||
|
"Erase key has multiple keycodes",
|
||||||
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
_ => {},
|
_ => {},
|
||||||
|
|||||||
@ -21,6 +21,7 @@ use ::action::Action;
|
|||||||
use ::imservice;
|
use ::imservice;
|
||||||
use ::imservice::IMService;
|
use ::imservice::IMService;
|
||||||
use ::keyboard::{ KeyCode, KeyState, KeyStateId, PressType };
|
use ::keyboard::{ KeyCode, KeyState, KeyStateId, PressType };
|
||||||
|
use ::logging;
|
||||||
use ::vkeyboard::VirtualKeyboard;
|
use ::vkeyboard::VirtualKeyboard;
|
||||||
|
|
||||||
/// Gathers stuff defined in C or called by C
|
/// Gathers stuff defined in C or called by C
|
||||||
@ -121,7 +122,10 @@ impl Submission {
|
|||||||
| Action::Erase
|
| Action::Erase
|
||||||
=> (),
|
=> (),
|
||||||
_ => {
|
_ => {
|
||||||
eprintln!("BUG: Submitted key with action other than Submit or Erase");
|
log_print!(
|
||||||
|
logging::Level::Bug,
|
||||||
|
"Submitted key with action other than Submit or Erase",
|
||||||
|
);
|
||||||
return;
|
return;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user