Add loging implementation for wasm (#56)

This commit is contained in:
TrueDoctor
2021-03-30 18:48:32 +02:00
committed by Keavon Chambers
parent 76598c967a
commit 6050038047
5 changed files with 43 additions and 1 deletions
+1
View File
@@ -10,6 +10,7 @@ pub struct Dispatcher {
impl Dispatcher {
pub fn handle_event(&self, state: &mut EditorState, event: Event) -> Result<(), EditorError> {
log::trace!("{:?}", event);
match event {
Event::SelectTool(tool_type) => {
state.tools.active_tool = tool_type;