mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-31 07:09:44 +02:00
update logger
This commit is contained in:
parent
0c3a881df0
commit
756453f9d2
9 changed files with 44 additions and 37 deletions
|
@ -99,7 +99,7 @@ int main(int argc, char* argv[])
|
|||
}
|
||||
catch (const std::invalid_argument& e)
|
||||
{
|
||||
SLOG(LOG_ERR) << "Exception: " << e.what() << std::endl;
|
||||
SLOG(ERROR) << "Exception: " << e.what() << std::endl;
|
||||
cout << "\n" << op << "\n";
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
@ -180,7 +180,7 @@ int main(int argc, char* argv[])
|
|||
processPriority = 19;
|
||||
if (processPriority != 0)
|
||||
setpriority(PRIO_PROCESS, 0, processPriority);
|
||||
SLOG(LOG_NOTICE) << "daemon started" << std::endl;
|
||||
SLOG(NOTICE) << "daemon started" << std::endl;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -214,11 +214,11 @@ int main(int argc, char* argv[])
|
|||
}
|
||||
catch (const std::exception& e)
|
||||
{
|
||||
SLOG(LOG_ERR) << "Exception: " << e.what() << std::endl;
|
||||
SLOG(ERROR) << "Exception: " << e.what() << std::endl;
|
||||
exitcode = EXIT_FAILURE;
|
||||
}
|
||||
|
||||
SLOG(LOG_NOTICE) << "daemon terminated." << endl;
|
||||
SLOG(NOTICE) << "daemon terminated." << endl;
|
||||
exit(exitcode);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue