Change core start errors to fatal (#7277)
* Change core start error to FATAL * Update ChangeLog --------- Co-authored-by: Serhii Hadzhilov <serhii-external@symless.com>
This commit is contained in:
parent
2ac3f7f5a3
commit
1a810ccdd7
6 changed files with 11 additions and 10 deletions
|
|
@ -10,6 +10,7 @@ Enhancements:
|
||||||
- #7263 Change name of Flatpak uploaded to snapshots
|
- #7263 Change name of Flatpak uploaded to snapshots
|
||||||
- #7269 Reword file drag drop error to debug message
|
- #7269 Reword file drag drop error to debug message
|
||||||
- #7274 Only build necessary binaries
|
- #7274 Only build necessary binaries
|
||||||
|
- #7277 Change start errors to fatal
|
||||||
|
|
||||||
1.14.6
|
1.14.6
|
||||||
======
|
======
|
||||||
|
|
|
||||||
|
|
@ -287,13 +287,13 @@ MSWindowsWatchdog::mainLoop(void*)
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (std::exception& e) {
|
catch (std::exception& e) {
|
||||||
LOG((CLOG_ERR "failed to launch, error: %s", e.what()));
|
LOG((CLOG_CRIT "failed to launch, error: %s", e.what()));
|
||||||
m_processFailures++;
|
m_processFailures++;
|
||||||
m_processRunning = false;
|
m_processRunning = false;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
catch (...) {
|
catch (...) {
|
||||||
LOG((CLOG_ERR "failed to launch, unknown error."));
|
LOG((CLOG_CRIT "failed to launch, unknown error."));
|
||||||
m_processFailures++;
|
m_processFailures++;
|
||||||
m_processRunning = false;
|
m_processRunning = false;
|
||||||
continue;
|
continue;
|
||||||
|
|
@ -370,7 +370,7 @@ MSWindowsWatchdog::startProcess()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!createRet) {
|
if (!createRet) {
|
||||||
LOG((CLOG_ERR "could not launch command"));
|
LOG((CLOG_CRIT "could not launch command"));
|
||||||
DWORD exitCode = 0;
|
DWORD exitCode = 0;
|
||||||
GetExitCodeProcess(m_processInfo.hProcess, &exitCode);
|
GetExitCodeProcess(m_processInfo.hProcess, &exitCode);
|
||||||
LOG((CLOG_ERR "exit code: %d", exitCode));
|
LOG((CLOG_ERR "exit code: %d", exitCode));
|
||||||
|
|
|
||||||
|
|
@ -203,7 +203,7 @@ App::initApp(int argc, const char** argv)
|
||||||
|
|
||||||
// set log filter
|
// set log filter
|
||||||
if (!CLOG->setFilter(argsBase().m_logFilter)) {
|
if (!CLOG->setFilter(argsBase().m_logFilter)) {
|
||||||
LOG((CLOG_PRINT "%s: unrecognized log level `%s'" BYE,
|
LOG((CLOG_CRIT "%s: unrecognized log level `%s'" BYE,
|
||||||
argsBase().m_pname, argsBase().m_logFilter, argsBase().m_pname));
|
argsBase().m_pname, argsBase().m_logFilter, argsBase().m_pname));
|
||||||
m_bye(kExitArgs);
|
m_bye(kExitArgs);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@ ArgParser::parseServerArgs(lib::synergy::ServerArgs& args, int argc, const char*
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
LOG((CLOG_PRINT "%s: unrecognized option `%s'" BYE, args.m_pname, argv[i], args.m_pname));
|
LOG((CLOG_CRIT "%s: unrecognized option `%s'" BYE, args.m_pname, argv[i], args.m_pname));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
++i;
|
++i;
|
||||||
|
|
@ -130,7 +130,7 @@ ArgParser::parseClientArgs(lib::synergy::ClientArgs& args, int argc, const char*
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
LOG((CLOG_PRINT "%s: unrecognized option `%s'" BYE, args.m_pname, argv[i], args.m_pname));
|
LOG((CLOG_CRIT "%s: unrecognized option `%s'" BYE, args.m_pname, argv[i], args.m_pname));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
++i;
|
++i;
|
||||||
|
|
@ -138,7 +138,7 @@ ArgParser::parseClientArgs(lib::synergy::ClientArgs& args, int argc, const char*
|
||||||
|
|
||||||
// exactly one non-option argument (server-address)
|
// exactly one non-option argument (server-address)
|
||||||
if (i == argc) {
|
if (i == argc) {
|
||||||
LOG((CLOG_PRINT "%s: a server address or name is required" BYE,
|
LOG((CLOG_CRIT "%s: a server address or name is required" BYE,
|
||||||
args.m_pname, args.m_pname));
|
args.m_pname, args.m_pname));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -98,7 +98,7 @@ ClientApp::parseArgs(int argc, const char* const* argv)
|
||||||
// server. a bad port will never get better. patch by Brent
|
// server. a bad port will never get better. patch by Brent
|
||||||
// Priddy.
|
// Priddy.
|
||||||
if (!args().m_restartable || e.getError() == XSocketAddress::kBadPort) {
|
if (!args().m_restartable || e.getError() == XSocketAddress::kBadPort) {
|
||||||
LOG((CLOG_PRINT "%s: %s" BYE,
|
LOG((CLOG_CRIT "%s: %s" BYE,
|
||||||
args().m_pname, e.what(), args().m_pname));
|
args().m_pname, e.what(), args().m_pname));
|
||||||
m_bye(kExitFailed);
|
m_bye(kExitFailed);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,7 @@ ServerApp::parseArgs(int argc, const char* const* argv)
|
||||||
m_synergyAddress->resolve();
|
m_synergyAddress->resolve();
|
||||||
}
|
}
|
||||||
catch (XSocketAddress& e) {
|
catch (XSocketAddress& e) {
|
||||||
LOG((CLOG_PRINT "%s: %s" BYE,
|
LOG((CLOG_CRIT "%s: %s" BYE,
|
||||||
args().m_pname, e.what(), args().m_pname));
|
args().m_pname, e.what(), args().m_pname));
|
||||||
m_bye(kExitArgs);
|
m_bye(kExitArgs);
|
||||||
}
|
}
|
||||||
|
|
@ -219,7 +219,7 @@ ServerApp::loadConfig()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!loaded) {
|
if (!loaded) {
|
||||||
LOG((CLOG_PRINT "%s: no configuration available", args().m_pname));
|
LOG((CLOG_CRIT "%s: no configuration available", args().m_pname));
|
||||||
m_bye(kExitConfig);
|
m_bye(kExitConfig);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue