From 4dbce13cb03aec0c648dedc2594bb8a3a44c8648 Mon Sep 17 00:00:00 2001 From: Ralf Ramsauer Date: Sun, 30 Aug 2015 21:16:01 +0200 Subject: [PATCH] Added logging to close request on button press Signed-off-by: Ralf Ramsauer --- doorlockd/door.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/doorlockd/door.cpp b/doorlockd/door.cpp index 4b00baf..35ceb17 100644 --- a/doorlockd/door.cpp +++ b/doorlockd/door.cpp @@ -85,6 +85,7 @@ void Door::unlock() if (!digitalRead(_LOCKPIN)) { std::thread([this] () { + _l(LogLevel::info, "Incoming door close request on button press"); lock(); }).detach(); }