Skip to content

Commit 5c58d0c

Browse files
Diff-fusionnilsding
authored andcommitted
Check if discovery paths are empty before logging
Signed-off-by: Felix <[email protected]>
1 parent a1a5d35 commit 5c58d0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsync/syncengine.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1216,7 +1216,7 @@ void SyncEngine::setLocalDiscoveryOptions(LocalDiscoveryStyle style, std::set<QS
12161216
_localDiscoveryStyle = style;
12171217
_localDiscoveryPaths = std::move(paths);
12181218

1219-
if (lcEngine().isInfoEnabled()) {
1219+
if (lcEngine().isInfoEnabled() && !_localDiscoveryPaths.empty()) {
12201220
// only execute if logging is enabled
12211221
auto debug = qInfo(lcEngine);
12221222
debug << "paths to discover locally";

0 commit comments

Comments
 (0)