summaryrefslogtreecommitdiff
path: root/src/bridge
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2013-12-03 19:10:44 +0100
committerFlorent Le Coz <louiz@louiz.org>2013-12-03 19:15:37 +0100
commita4c845ab6c54172ea305f33734c83238c75d421a (patch)
tree3ed5393e993f0e9b72fabd9413453fadbfe9a9a9 /src/bridge
parent2662ed89e2cd41477582140e482f1ddbbfdb235e (diff)
downloadbiboumi-a4c845ab6c54172ea305f33734c83238c75d421a.tar.gz
biboumi-a4c845ab6c54172ea305f33734c83238c75d421a.tar.bz2
biboumi-a4c845ab6c54172ea305f33734c83238c75d421a.tar.xz
biboumi-a4c845ab6c54172ea305f33734c83238c75d421a.zip
Use the logger everywhere
Diffstat (limited to 'src/bridge')
-rw-r--r--src/bridge/bridge.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bridge/bridge.cpp b/src/bridge/bridge.cpp
index 7e6f801..2ad6af8 100644
--- a/src/bridge/bridge.cpp
+++ b/src/bridge/bridge.cpp
@@ -3,7 +3,7 @@
#include <xmpp/xmpp_component.hpp>
#include <network/poller.hpp>
#include <utils/encoding.hpp>
-
+#include <logger/logger.hpp>
#include <utils/split.hpp>
#include <iostream>
@@ -78,13 +78,13 @@ void Bridge::send_channel_message(const Iid& iid, const std::string& body)
const std::string first_line = lines[0];
if (iid.chan.empty() || iid.server.empty())
{
- std::cout << "Cannot send message to channel: [" << iid.chan << "] on server [" << iid.server << "]" << std::endl;
+ log_warning("Cannot send message to channel: [" << iid.chan << "] on server [" << iid.server << "]");
return;
}
IrcClient* irc = this->get_irc_client(iid.server);
if (!irc)
{
- std::cout << "Cannot send message: no client exist for server " << iid.server << std::endl;
+ log_warning("Cannot send message: no client exist for server " << iid.server);
return;
}
if (first_line.substr(0, 6) == "/mode ")