update logger

This commit is contained in:
badaix 2017-09-12 21:19:18 +02:00
parent 0c3a881df0
commit 756453f9d2
9 changed files with 44 additions and 37 deletions

View file

@ -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);
}