Add loging implementation for wasm (#56)

This commit is contained in:
TrueDoctor
2021-03-30 18:48:32 +02:00
committed by GitHub
parent b5cd8327dd
commit 593572a4e8
5 changed files with 43 additions and 1 deletions

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;