summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2015-02-25 16:37:31 +0100
committerFlorent Le Coz <louiz@louiz.org>2015-02-25 16:37:58 +0100
commit1c43c3af4cbefcd482f4145ee3d7553631a7485d (patch)
treea89af3c3c03aac7fa92af6f7c372c34e3c866ab6 /src
parent89af57bfcde9713719f0147bb1df237f69c33d37 (diff)
downloadbiboumi-1c43c3af4cbefcd482f4145ee3d7553631a7485d.tar.gz
biboumi-1c43c3af4cbefcd482f4145ee3d7553631a7485d.tar.bz2
biboumi-1c43c3af4cbefcd482f4145ee3d7553631a7485d.tar.xz
biboumi-1c43c3af4cbefcd482f4145ee3d7553631a7485d.zip
Include the IRC hostname in the IRC RECEIVING and SENDING debug messages
fix #2715
Diffstat (limited to 'src')
-rw-r--r--src/irc/irc_client.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/irc/irc_client.cpp b/src/irc/irc_client.cpp
index ee8d2d8..f83b48c 100644
--- a/src/irc/irc_client.cpp
+++ b/src/irc/irc_client.cpp
@@ -140,7 +140,7 @@ void IrcClient::parse_in_buffer(const size_t)
break ;
IrcMessage message(this->in_buf.substr(0, pos));
this->in_buf = this->in_buf.substr(pos + 2, std::string::npos);
- log_debug("IRC RECEIVING: " << message);
+ log_debug("IRC RECEIVING: (" << this->get_hostname() << ") " << message);
// Call the standard callback (if any), associated with the command
// name that we just received.
@@ -162,7 +162,7 @@ void IrcClient::parse_in_buffer(const size_t)
void IrcClient::send_message(IrcMessage&& message)
{
- log_debug("IRC SENDING: " << message);
+ log_debug("IRC SENDING: (" << this->get_hostname() << ") " << message);
std::string res;
if (!message.prefix.empty())
res += ":" + std::move(message.prefix) + " ";