From b72c3cba2451881aca5cfb4989f08114da4f615f Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Thu, 14 Jan 2016 17:11:03 +0100 Subject: SSH: Use categorized logging. Change-Id: I9890c7d4a86320c835e70e66c523c5a2f7b41421 Reviewed-by: Michal Klocek Reviewed-by: Joerg Bornemann --- src/libs/ssh/sshdirecttcpiptunnel.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/libs/ssh/sshdirecttcpiptunnel.cpp') diff --git a/src/libs/ssh/sshdirecttcpiptunnel.cpp b/src/libs/ssh/sshdirecttcpiptunnel.cpp index 8f7be39847..504b3fd742 100644 --- a/src/libs/ssh/sshdirecttcpiptunnel.cpp +++ b/src/libs/ssh/sshdirecttcpiptunnel.cpp @@ -31,6 +31,7 @@ #include "sshdirecttcpiptunnel_p.h" #include "sshincomingpacket_p.h" +#include "sshlogging_p.h" #include "sshsendfacility_p.h" #include @@ -82,18 +83,18 @@ void SshDirectTcpIpTunnelPrivate::handleChannelDataInternal(const QByteArray &da void SshDirectTcpIpTunnelPrivate::handleChannelExtendedDataInternal(quint32 type, const QByteArray &data) { - qDebug("%s: Unexpected extended channel data. Type is %u, content is '%s'.", Q_FUNC_INFO, type, - data.constData()); + qCWarning(sshLog, "%s: Unexpected extended channel data. Type is %u, content is '%s'.", + Q_FUNC_INFO, type, data.constData()); } void SshDirectTcpIpTunnelPrivate::handleExitStatus(const SshChannelExitStatus &exitStatus) { - qDebug("%s: Unexpected exit status %d.", Q_FUNC_INFO, exitStatus.exitStatus); + qCWarning(sshLog, "%s: Unexpected exit status %d.", Q_FUNC_INFO, exitStatus.exitStatus); } void SshDirectTcpIpTunnelPrivate::handleExitSignal(const SshChannelExitSignal &signal) { - qDebug("%s: Unexpected exit signal %s.", Q_FUNC_INFO, signal.signal.constData()); + qCWarning(sshLog, "%s: Unexpected exit signal %s.", Q_FUNC_INFO, signal.signal.constData()); } void SshDirectTcpIpTunnelPrivate::closeHook() @@ -166,7 +167,7 @@ void SshDirectTcpIpTunnel::initialize() d->setChannelState(AbstractSshChannel::SessionRequested); d->m_timeoutTimer.start(d->ReplyTimeout); } catch (const Botan::Exception &e) { // Won't happen, but let's play it safe. - qDebug("Botan error: %s", e.what()); + qCWarning(sshLog, "Botan error: %s", e.what()); d->closeChannel(); } } -- cgit v1.2.1