forked from qt-creator/qt-creator
Docker: Extend log messages
Add some indication which container the log messages belong to. Change-Id: Iafdc7f9c77e58649f2922aefd2a109cf17db78ff Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
Reference in New Issue
Block a user