From e3cc55d32281be5dd7b7017d6dfed42be24d3cda Mon Sep 17 00:00:00 2001 From: Matthias Braendli Date: Tue, 2 Jun 2015 12:25:40 +0200 Subject: Logging: use etiLog instead of stderr --- src/RemoteControl.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/RemoteControl.h') diff --git a/src/RemoteControl.h b/src/RemoteControl.h index 15b35f6..8f4bdaf 100644 --- a/src/RemoteControl.h +++ b/src/RemoteControl.h @@ -50,6 +50,7 @@ #include #include +#include "Log.h" #define RC_ADD_PARAMETER(p, desc) { \ std::vector p; \ @@ -114,8 +115,8 @@ class RemoteControllers { it != m_controllers.end(); ++it) { if ((*it)->fault_detected()) { - fprintf(stderr, - "Detected Remote Control fault, restarting it\n"); + etiLog.level(warn) << + "Detected Remote Control fault, restarting it"; (*it)->restart(); } } -- cgit v1.2.3