laforge
/
openbts-osmo
Archived
1
0
Fork 0

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:
Alexander Chemeris 2010-11-22 16:40:46 +03:00 committed by Thomas Tsou
parent aec7d8c604
commit a5c9b9ecbb
1 changed files with 4 additions and 4 deletions

View File

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