diff options
author | Christian Kandeler <christian.kandeler@theqtcompany.com> | 2016-01-14 17:11:03 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@theqtcompany.com> | 2016-01-18 12:17:15 +0000 |
commit | b72c3cba2451881aca5cfb4989f08114da4f615f (patch) | |
tree | 86b4ce6d869cd3aa1319299087c9cab114bfa193 /src/libs/ssh/sshdirecttcpiptunnel.cpp | |
parent | 54d64971d8047d9fd6655fa53634bc1df9b63466 (diff) | |
download | qt-creator-b72c3cba2451881aca5cfb4989f08114da4f615f.tar.gz |
SSH: Use categorized logging.
Change-Id: I9890c7d4a86320c835e70e66c523c5a2f7b41421
Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'src/libs/ssh/sshdirecttcpiptunnel.cpp')
-rw-r--r-- | src/libs/ssh/sshdirecttcpiptunnel.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
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 <QTimer> @@ -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(); } } |