From 1e18678383aaf4135416f6ce5b099264acb44b23 Mon Sep 17 00:00:00 2001 From: hjk Date: Wed, 22 Sep 2021 14:42:21 +0200 Subject: [PATCH] Docker: Extend log messages Add some indication which container the log messages belong to. Change-Id: Iafdc7f9c77e58649f2922aefd2a109cf17db78ff Reviewed-by: David Schulz --- src/plugins/docker/dockerdevice.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/docker/dockerdevice.cpp b/src/plugins/docker/dockerdevice.cpp index 71a1e4e2e55..834b5789626 100644 --- a/src/plugins/docker/dockerdevice.cpp +++ b/src/plugins/docker/dockerdevice.cpp @@ -94,7 +94,7 @@ namespace Docker { namespace Internal { static Q_LOGGING_CATEGORY(dockerDeviceLog, "qtc.docker.device", QtWarningMsg); -#define LOG(x) qCDebug(dockerDeviceLog) << x << '\n' +#define LOG(x) qCDebug(dockerDeviceLog) << this << x << '\n' class DockerDeviceProcess : public ProjectExplorer::DeviceProcess { @@ -302,11 +302,11 @@ class DockerDevicePrivate : public QObject public: DockerDevicePrivate(DockerDevice *parent) : q(parent) { - connect(&m_mergedDirWatcher, &QFileSystemWatcher::fileChanged, this, [](const QString &path) { + connect(&m_mergedDirWatcher, &QFileSystemWatcher::fileChanged, this, [this](const QString &path) { Q_UNUSED(path) LOG("Container watcher change, file: " << path); }); - connect(&m_mergedDirWatcher, &QFileSystemWatcher::directoryChanged, this, [](const QString &path) { + connect(&m_mergedDirWatcher, &QFileSystemWatcher::directoryChanged, this, [this](const QString &path) { Q_UNUSED(path) LOG("Container watcher change, directory: " << path); });