diff options
author | Chris Robinson <[email protected]> | 2023-10-19 19:29:14 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-10-19 19:29:14 -0700 |
commit | f15749e7dadbb2d6050c037da9ccd97e8f4dc31c (patch) | |
tree | 54ee8157141e871ff721da4e80b73e55036c6bd5 /alc | |
parent | b3e83d830e8fb0cc85fa6c53eb820b754fae41c7 (diff) |
Don't log failed config option lookups
Diffstat (limited to 'alc')
-rw-r--r-- | alc/alconfig.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
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); } |