Skip to content

Commit

Permalink
Check if discovery paths are empty before logging
Browse files Browse the repository at this point in the history
Signed-off-by: Felix <felix-git@0xf.eu>
  • Loading branch information
Diff-fusion committed Jan 8, 2025
1 parent 2c61556 commit eeab13f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libsync/syncengine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1216,7 +1216,7 @@ void SyncEngine::setLocalDiscoveryOptions(LocalDiscoveryStyle style, std::set<QS
_localDiscoveryStyle = style;
_localDiscoveryPaths = std::move(paths);

if (lcEngine().isInfoEnabled()) {
if (lcEngine().isInfoEnabled() && !_localDiscoveryPaths.empty()) {
// only execute if logging is enabled
auto debug = qInfo(lcEngine);
debug << "paths to discover locally";
Expand Down

0 comments on commit eeab13f

Please sign in to comment.