diff options
author | Matthias Braendli <matthias.braendli@u-blox.com> | 2015-06-02 12:25:40 +0200 |
---|---|---|
committer | Matthias Braendli <matthias.braendli@u-blox.com> | 2015-06-02 12:27:42 +0200 |
commit | e3cc55d32281be5dd7b7017d6dfed42be24d3cda (patch) | |
tree | c589cedc7bd1cabfdf1aee9a65f00037006e7c22 /src/RemoteControl.h | |
parent | 7eaba8024b95bb346247c828748d2292c226d19f (diff) | |
download | dabmod-e3cc55d32281be5dd7b7017d6dfed42be24d3cda.tar.gz dabmod-e3cc55d32281be5dd7b7017d6dfed42be24d3cda.tar.bz2 dabmod-e3cc55d32281be5dd7b7017d6dfed42be24d3cda.zip |
Logging: use etiLog instead of stderr
Diffstat (limited to 'src/RemoteControl.h')
-rw-r--r-- | src/RemoteControl.h | 5 |
1 files changed, 3 insertions, 2 deletions
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 <boost/thread.hpp> #include <stdexcept> +#include "Log.h" #define RC_ADD_PARAMETER(p, desc) { \ std::vector<std::string> 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(); } } |