Docker: Suppress a warning if logging is not enabled

Change-Id: Ifad1dd0b720d910cf0fc0c200517563f3ba0897c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2021-05-05 14:50:06 +02:00
parent 60055b6e4c
commit 43636e3cb3

View File

@@ -269,9 +269,11 @@ public:
DockerDevicePrivate()
{
connect(&m_mergedDirWatcher, &QFileSystemWatcher::fileChanged, this, [](const QString &path) {
Q_UNUSED(path)
LOG("Container watcher change, file: " << path);
});
connect(&m_mergedDirWatcher, &QFileSystemWatcher::directoryChanged, this, [](const QString &path) {
Q_UNUSED(path)
LOG("Container watcher change, directory: " << path);
});
}