added debug logging

This commit is contained in:
Jonas Zeunert
2018-09-20 20:34:37 +02:00
parent 17ed977e5e
commit d09e5f023e

View File

@@ -43,7 +43,7 @@ void Detector::detect()
try
{
auto event = events.at(address);
CLOG(DEBUG, OUTPUT_LOGGER) << "Found event " << event->name << "(" << event->address << ").";
CLOG(DEBUG, INPUT_LOGGER) << "Found event " << event->name << "(" << event->address << ").";
event_notifier->distribute_event(event);
}
catch(std::out_of_range& e)
@@ -60,7 +60,7 @@ bool Detector::check_inputs(char& address)
{
if(input_gpio_interface->read_data(pin))
{
CLOG(DEBUG, OUTPUT_LOGGER) << "Pin " << pin << " is triggered.";
CLOG(DEBUG, INPUT_LOGGER) << "Pin " << pin << " is triggered.";
address = pin;
return true;
}