mirror of
https://github.com/minetest/minetest.git
synced 2025-06-30 23:20:22 +02:00
Use warningstream for log messages with WARNING
Remove DTIME macro and its uses, too
This commit is contained in:
@ -75,13 +75,13 @@ bool * signal_handler_killstatus(void)
|
||||
|
||||
void sigint_handler(int sig)
|
||||
{
|
||||
if(!g_killed) {
|
||||
dstream<<DTIME<<"INFO: sigint_handler(): "
|
||||
<<"Ctrl-C pressed, shutting down."<<std::endl;
|
||||
if (!g_killed) {
|
||||
dstream << "INFO: sigint_handler(): "
|
||||
<< "Ctrl-C pressed, shutting down." << std::endl;
|
||||
|
||||
// Comment out for less clutter when testing scripts
|
||||
/*dstream<<DTIME<<"INFO: sigint_handler(): "
|
||||
<<"Printing debug stacks"<<std::endl;
|
||||
/*dstream << "INFO: sigint_handler(): "
|
||||
<< "Printing debug stacks" << std::endl;
|
||||
debug_stacks_print();*/
|
||||
|
||||
g_killed = true;
|
||||
@ -105,8 +105,8 @@ BOOL WINAPI event_handler(DWORD sig)
|
||||
case CTRL_CLOSE_EVENT:
|
||||
case CTRL_LOGOFF_EVENT:
|
||||
case CTRL_SHUTDOWN_EVENT:
|
||||
if (g_killed == false) {
|
||||
dstream << DTIME << "INFO: event_handler(): "
|
||||
if (!g_killed) {
|
||||
dstream << "INFO: event_handler(): "
|
||||
<< "Ctrl+C, Close Event, Logoff Event or Shutdown Event,"
|
||||
" shutting down." << std::endl;
|
||||
g_killed = true;
|
||||
@ -401,14 +401,14 @@ bool setSystemPaths()
|
||||
const std::string &trypath = *i;
|
||||
if (!fs::PathExists(trypath) ||
|
||||
!fs::PathExists(trypath + DIR_DELIM + "builtin")) {
|
||||
dstream << "WARNING: system-wide share not found at \""
|
||||
warningstream << "system-wide share not found at \""
|
||||
<< trypath << "\""<< std::endl;
|
||||
continue;
|
||||
}
|
||||
|
||||
// Warn if was not the first alternative
|
||||
if (i != trylist.begin()) {
|
||||
dstream << "WARNING: system-wide share found at \""
|
||||
warningstream << "system-wide share found at \""
|
||||
<< trypath << "\"" << std::endl;
|
||||
}
|
||||
|
||||
@ -437,7 +437,7 @@ bool setSystemPaths()
|
||||
TRUE, (UInt8 *)path, PATH_MAX)) {
|
||||
path_share = std::string(path);
|
||||
} else {
|
||||
dstream << "WARNING: Could not determine bundle resource path" << std::endl;
|
||||
warningstream << "Could not determine bundle resource path" << std::endl;
|
||||
}
|
||||
CFRelease(resources_url);
|
||||
|
||||
|
Reference in New Issue
Block a user