diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-01-10 20:32:38 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-01-10 20:32:38 +0100 |
commit | 3bcda54518c4914c1b934d7d12b7219d1ee7d941 (patch) | |
tree | 7c408edb09755c7d5ca4305982d77a9c8365efac /src | |
parent | 863d9fe32fbff286d4c359d6a5c29184ed511866 (diff) | |
download | dabmux-3bcda54518c4914c1b934d7d12b7219d1ee7d941.tar.gz dabmux-3bcda54518c4914c1b934d7d12b7219d1ee7d941.tar.bz2 dabmux-3bcda54518c4914c1b934d7d12b7219d1ee7d941.zip |
Improve ManagementServer request logging
Diffstat (limited to 'src')
-rw-r--r-- | src/ManagementServer.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ManagementServer.cpp b/src/ManagementServer.cpp index 2b501be..7194689 100644 --- a/src/ManagementServer.cpp +++ b/src/ManagementServer.cpp @@ -264,10 +264,11 @@ void ManagementServer::handle_message(zmq::message_t& zmq_message) std::stringstream answer; std::string data((char*)zmq_message.data(), zmq_message.size()); - try { - etiLog.level(info) << "RC: Accepted"; + etiLog.level(debug) << "ManagementServer: '" << data << "' request"; + try { if (data == "info") { + answer << "{ \"service\": \"" << PACKAGE_NAME << " " << @@ -300,6 +301,7 @@ void ManagementServer::handle_message(zmq::message_t& zmq_message) boost::property_tree::json_parser::write_json(answer, m_pt); } else { + etiLog.level(warn) << "ManagementServer: Invalid request '" << data << "'"; answer << "Invalid command"; } |