X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FMain%2Ffg_props.cxx;h=46acff3e580dc4850a274eacf16e8c3bc704a933;hb=a739fad66484506ebb71fc802bf8f1a0c2ab4c6c;hp=0311fcd93dd333361398df7dab2ef7db8965465a;hpb=a33ad90ed7c537845cd4f77eecd5118b04e1d96a;p=flightgear.git diff --git a/src/Main/fg_props.cxx b/src/Main/fg_props.cxx index 0311fcd93..46acff3e5 100644 --- a/src/Main/fg_props.cxx +++ b/src/Main/fg_props.cxx @@ -24,7 +24,7 @@ # include #endif -#include +#include #include #include #include @@ -46,7 +46,6 @@ #include #include "globals.hxx" -#include "fgfs.hxx" #include "fg_props.hxx" SG_USING_STD(istream); @@ -126,7 +125,7 @@ addLoggingClass (const string &name) return; } } - SG_LOG(SG_GENERAL, SG_ALERT, "Unknown logging class: " << name); + SG_LOG(SG_GENERAL, SG_WARN, "Unknown logging class: " << name); } @@ -197,6 +196,8 @@ getLoggingPriority () static void setLoggingPriority (const char * p) { + if (p == 0) + return; string priority = p; if (priority == "bulk") { logbuf::set_log_priority(SG_BULK); @@ -211,7 +212,7 @@ setLoggingPriority (const char * p) } else { SG_LOG(SG_GENERAL, SG_WARN, "Unknown logging priority " << priority); } - SG_LOG(SG_GENERAL, SG_INFO, "Logging priority is " << getLoggingPriority()); + SG_LOG(SG_GENERAL, SG_DEBUG, "Logging priority is " << getLoggingPriority()); } @@ -315,7 +316,7 @@ setDateString (const char * date_string) // if the save file has been edited // by hand. if (ret != 6) { - SG_LOG(SG_INPUT, SG_ALERT, "Date/time string " << date_string + SG_LOG(SG_INPUT, SG_WARN, "Date/time string " << date_string << " not in YYYY-MM-DDTHH:MM:SS format; skipped"); return; } @@ -796,7 +797,7 @@ fgSetArchivable (const char * name, bool state) { SGPropertyNode * node = globals->get_props()->getNode(name); if (node == 0) - SG_LOG(SG_GENERAL, SG_ALERT, + SG_LOG(SG_GENERAL, SG_DEBUG, "Attempt to set archive flag for non-existant property " << name); else @@ -808,7 +809,7 @@ fgSetReadable (const char * name, bool state) { SGPropertyNode * node = globals->get_props()->getNode(name); if (node == 0) - SG_LOG(SG_GENERAL, SG_ALERT, + SG_LOG(SG_GENERAL, SG_DEBUG, "Attempt to set read flag for non-existant property " << name); else @@ -820,7 +821,7 @@ fgSetWritable (const char * name, bool state) { SGPropertyNode * node = globals->get_props()->getNode(name); if (node == 0) - SG_LOG(SG_GENERAL, SG_ALERT, + SG_LOG(SG_GENERAL, SG_DEBUG, "Attempt to set write flag for non-existant property " << name); else