Skip to content

Commit

Permalink
Server: Don't warn on empty --serverinfo
Browse files Browse the repository at this point in the history
The intention of 5b2c2de was to introduce logging for bad --serverinfo
parameters. However, it also warns about bad serverinfo if no
--serverinfo is given at all. This is confusing.
Therefore, this commit removes the error when no --serverinfo has been
given.

Fixes: #2947
  • Loading branch information
hoffie committed Oct 31, 2022
1 parent ca0183e commit 92de75f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/serverlist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,10 @@ CServerListManager::CServerListManager ( const quint16 iNPortNum,
}
else
{
qWarning() << "Ignoring invalid serverinfo, please verify the parameter syntax.";
if ( !strServerInfo.isEmpty() )
{
qWarning() << "Ignoring invalid serverinfo, please verify the parameter syntax.";
}
}

// per definition, the very first entry is this server and this entry will
Expand Down

0 comments on commit 92de75f

Please sign in to comment.