From cfe20bea182d801e8309b765fd15caad33f36cac Mon Sep 17 00:00:00 2001 From: Serhii Hadzhilov <71632867+SerhiiGadzhilov@users.noreply.github.com> Date: Thu, 17 Aug 2023 17:53:26 +0400 Subject: [PATCH] Change error priority based on param (#7279) --- src/lib/synergy/ServerApp.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib/synergy/ServerApp.cpp b/src/lib/synergy/ServerApp.cpp index 28b8158ea..e3f4c9131 100644 --- a/src/lib/synergy/ServerApp.cpp +++ b/src/lib/synergy/ServerApp.cpp @@ -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()); }