]> git.mxchange.org Git - flightgear.git/commitdiff
event input system: be a little more helpful on errors
authorTorsten Dreyer <torsten@t3r.de>
Mon, 2 Nov 2015 10:42:30 +0000 (11:42 +0100)
committerTorsten Dreyer <torsten@t3r.de>
Mon, 2 Nov 2015 10:42:30 +0000 (11:42 +0100)
src/Input/FGDeviceConfigurationMap.cxx

index d62a32f9e88bd243976fc91fa94e56bc0bdc36cb..7be95cb38953ef3b9cb5862d1e199bc2f00cd6ef 100644 (file)
@@ -96,6 +96,7 @@ bool FGDeviceConfigurationMap::hasConfiguration(const std::string& name) const
 
 void FGDeviceConfigurationMap::scan_dir(const SGPath & path)
 {
+  SG_LOG(SG_INPUT, SG_DEBUG, "Scanning " << path << " for input devices");
   if (!path.exists())
     return;
   
@@ -138,12 +139,12 @@ void FGDeviceConfigurationMap::readCachedData(const SGPath& path)
 
 void FGDeviceConfigurationMap::refreshCacheForFile(const SGPath& path)
 {
-  SG_LOG(SG_INPUT, SG_DEBUG, "Reading joystick file " << path.str());
+  SG_LOG(SG_INPUT, SG_DEBUG, "Reading device file " << path.str());
   SGPropertyNode_ptr n(new SGPropertyNode);
   try {
     readProperties(path.str(), n);
   } catch (sg_exception&) {
-    SG_LOG(SG_INPUT, SG_WARN, "parse failure reading:" << path);
+    SG_LOG(SG_INPUT, SG_ALERT, "parse failure reading:" << path);
     return;
   }