From: Torsten Dreyer Date: Mon, 2 Nov 2015 10:42:30 +0000 (+0100) Subject: event input system: be a little more helpful on errors X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=62d0d2ab069d1c06a5eca0f481c7edb9582e2bbc;p=flightgear.git event input system: be a little more helpful on errors --- diff --git a/src/Input/FGDeviceConfigurationMap.cxx b/src/Input/FGDeviceConfigurationMap.cxx index d62a32f9e..7be95cb38 100644 --- a/src/Input/FGDeviceConfigurationMap.cxx +++ b/src/Input/FGDeviceConfigurationMap.cxx @@ -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; }