mirror of
https://github.com/badaix/snapcast.git
synced 2025-08-01 15:49:56 +02:00
update logger
This commit is contained in:
parent
0c3a881df0
commit
756453f9d2
9 changed files with 44 additions and 37 deletions
|
@ -194,7 +194,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
|
||||
|
||||
|
@ -226,7 +226,7 @@ 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;
|
||||
}
|
||||
chronos::sleep(500);
|
||||
}
|
||||
|
@ -245,11 +245,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