summaryrefslogtreecommitdiffstats
path: root/src/RemoteControl.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-01-24 14:24:40 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-01-24 14:24:40 +0100
commit3983be135c14d355c36ee3d69424f03c73fc6a13 (patch)
treed5de4d7e796cb21802b6a9c2197de433d7f8674d /src/RemoteControl.cpp
parentf75ac25e6e93ab167b5f3cfdecbbbf286fdc4fed (diff)
downloaddabmux-3983be135c14d355c36ee3d69424f03c73fc6a13.tar.gz
dabmux-3983be135c14d355c36ee3d69424f03c73fc6a13.tar.bz2
dabmux-3983be135c14d355c36ee3d69424f03c73fc6a13.zip
Add logging support to RemoteControlTelnet
Diffstat (limited to 'src/RemoteControl.cpp')
-rw-r--r--src/RemoteControl.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/RemoteControl.cpp b/src/RemoteControl.cpp
index 876d71a..7cc975a 100644
--- a/src/RemoteControl.cpp
+++ b/src/RemoteControl.cpp
@@ -23,9 +23,9 @@
*/
#include <list>
#include <string>
-#include <iostream>
#include <string>
#include <boost/asio.hpp>
+#include "Log.h"
#include "RemoteControl.h"
@@ -71,7 +71,7 @@ RemoteControllerTelnet::process(long)
std::getline(str, in_message);
if (length == 0) {
- std::cerr << "Connection terminated" << std::endl;
+ etiLog.level(info) << "RC: Connection terminated";
break;
}
@@ -85,17 +85,17 @@ RemoteControllerTelnet::process(long)
continue;
}
- std::cerr << "Got message '" << in_message << "'" << std::endl;
+ etiLog.level(info) << "RC: Got message '" << in_message << "'";
dispatch_command(socket, in_message);
}
- std::cerr << "Closing socket" << std::endl;
+ etiLog.level(info) << "RC: Closing socket";
socket.close();
}
}
catch (std::exception& e)
{
- std::cerr << e.what() << std::endl;
+ etiLog.level(error) << "Remote control caught exception: " << e.what();
}
}