From f15749e7dadbb2d6050c037da9ccd97e8f4dc31c Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 19 Oct 2023 19:29:14 -0700 Subject: Don't log failed config option lookups --- alc/alconfig.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'alc/alconfig.cpp') diff --git a/alc/alconfig.cpp b/alc/alconfig.cpp index 097ba3a0..cfa178fb 100644 --- a/alc/alconfig.cpp +++ b/alc/alconfig.cpp @@ -265,7 +265,7 @@ void LoadConfigFromFile(std::istream &f) } } - TRACE(" found '%s' = '%s'\n", fullKey.c_str(), value.c_str()); + TRACE(" setting '%s' = '%s'\n", fullKey.c_str(), value.c_str()); /* Check if we already have this option set */ auto find_key = [&fullKey](const ConfigEntry &entry) -> bool @@ -316,17 +316,14 @@ const char *GetConfigValue(const char *devName, const char *blockName, const cha { return entry.key == key; }); if(iter != ConfOpts.cend()) { - TRACE("Found %s = \"%s\"\n", key.c_str(), iter->value.c_str()); + TRACE("Found option %s = \"%s\"\n", key.c_str(), iter->value.c_str()); if(!iter->value.empty()) return iter->value.c_str(); return nullptr; } if(!devName) - { - TRACE("Key %s not found\n", key.c_str()); return nullptr; - } return GetConfigValue(nullptr, blockName, keyName); } -- cgit v1.2.3