From 9da37c8a3ab9d3f097c315fb181cf6b47cfb001b Mon Sep 17 00:00:00 2001 From: Jonas Zeunert Date: Wed, 30 Oct 2019 22:49:43 +0100 Subject: [PATCH 1/2] log eventhandler creation --- FlippR-Driver/src/input/detail/InputDriver.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/FlippR-Driver/src/input/detail/InputDriver.cpp b/FlippR-Driver/src/input/detail/InputDriver.cpp index fb62c8e..6b5e949 100644 --- a/FlippR-Driver/src/input/detail/InputDriver.cpp +++ b/FlippR-Driver/src/input/detail/InputDriver.cpp @@ -24,11 +24,13 @@ event_notifier(std::move(event_notifier)), detector(std::move(detector)), events void InputDriver::register_event_handler(EventHandler *handler) { + CLOG(INFO, INPUT_LOGGER) << "New Eventhandler at adress " handler << " was registered."; this->event_notifier->register_event_handler(handler); } void InputDriver::unregister_event_handler(EventHandler *handler) { + CLOG(INFO, INPUT_LOGGER) << "Eventhandler at adress " handler << " was unregistered."; this->event_notifier->unregister_event_handler(handler); } From 70f7ed816792253cf53f7d71472bc59cf9f30ec8 Mon Sep 17 00:00:00 2001 From: Jonas Zeunert Date: Wed, 30 Oct 2019 22:51:07 +0100 Subject: [PATCH 2/2] log eventhandler creation --- FlippR-Driver/src/input/detail/InputDriver.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FlippR-Driver/src/input/detail/InputDriver.cpp b/FlippR-Driver/src/input/detail/InputDriver.cpp index 6b5e949..c8bd102 100644 --- a/FlippR-Driver/src/input/detail/InputDriver.cpp +++ b/FlippR-Driver/src/input/detail/InputDriver.cpp @@ -24,13 +24,13 @@ event_notifier(std::move(event_notifier)), detector(std::move(detector)), events void InputDriver::register_event_handler(EventHandler *handler) { - CLOG(INFO, INPUT_LOGGER) << "New Eventhandler at adress " handler << " was registered."; + CLOG(INFO, INPUT_LOGGER) << "New Eventhandler at adress " << handler << " was registered."; this->event_notifier->register_event_handler(handler); } void InputDriver::unregister_event_handler(EventHandler *handler) { - CLOG(INFO, INPUT_LOGGER) << "Eventhandler at adress " handler << " was unregistered."; + CLOG(INFO, INPUT_LOGGER) << "Eventhandler at adress " << handler << " was unregistered."; this->event_notifier->unregister_event_handler(handler); }