Change error priority based on param (#7279)
This commit is contained in:
parent
944abfaa1a
commit
cfe20bea18
1 changed files with 6 additions and 1 deletions
|
|
@ -553,7 +553,12 @@ ServerApp::startServer()
|
|||
return true;
|
||||
}
|
||||
catch (XSocketAddressInUse& e) {
|
||||
LOG((CLOG_CRIT "cannot listen for clients: %s", e.what()));
|
||||
if (args().m_restartable) {
|
||||
LOG((CLOG_ERR "cannot listen for clients: %s", e.what()));
|
||||
}
|
||||
else {
|
||||
LOG((CLOG_CRIT "cannot listen for clients: %s", e.what()));
|
||||
}
|
||||
closeClientListener(listener);
|
||||
updateStatus(String("cannot listen for clients: ") + e.what());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue