Use normal cout and cerr while we have only one thread.
COUT() and CERR() macros output current time before text, which looks ugly for the welcome message.
This commit is contained in:
parent
aec7d8c604
commit
a5c9b9ecbb
|
@ -297,18 +297,18 @@ int main(int argc, char *argv[])
|
|||
|
||||
// Catch signal to re-read config
|
||||
if (signal(SIGHUP, signalHandler) == SIG_ERR) {
|
||||
CERR("Error while setting handler for SIGHUP.");
|
||||
cerr << "Error while setting handler for SIGHUP.";
|
||||
}
|
||||
// Catch signal to shutdown gracefully
|
||||
if (signal(SIGTERM, signalHandler) == SIG_ERR) {
|
||||
CERR("Error while setting handler for SIGTERM.");
|
||||
cerr << "Error while setting handler for SIGTERM.";
|
||||
}
|
||||
// Catch Ctrl-C signal
|
||||
if (signal(SIGINT, signalHandler) == SIG_ERR) {
|
||||
CERR("Error while setting handler for SIGINT.");
|
||||
cerr << "Error while setting handler for SIGINT.";
|
||||
}
|
||||
|
||||
COUT("\n\n" << gOpenBTSWelcome << "\n");
|
||||
cout << endl << endl << gOpenBTSWelcome << endl;
|
||||
|
||||
if (gConfig.defines("Log.FileName")) {
|
||||
gSetLogFile(gConfig.getStr("Log.FileName"));
|
||||
|
|
Reference in New Issue