Commit cd252634 authored by Dorota Czaplejewicz's avatar Dorota Czaplejewicz
Browse files

logging: Use in merged functions

parent de8aaa1a
......@@ -155,7 +155,10 @@ pub fn generate_keymap(
keycodes.next().expect("Erase key has no keycode"),
)?;
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::IMService;
use ::keyboard::{ KeyCode, KeyState, KeyStateId, PressType };
use ::logging;
use ::vkeyboard::VirtualKeyboard;
/// Gathers stuff defined in C or called by C
......@@ -121,7 +122,10 @@ impl Submission {
| 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;
},
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment