aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alc.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-09-28 16:14:20 -0700
committerChris Robinson <[email protected]>2020-09-28 16:14:20 -0700
commitb5eccf424b9f9ed0e6b927d75e646bdff6d00c98 (patch)
treee3f8bded407d63abf42945fe229c1040d5286bd0 /alc/alc.cpp
parentf02bc1354d406707619c3f4704e06c9d15b24f63 (diff)
Remove the unused Ref logging level
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r--alc/alc.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp
index 2b9c9ce6..2b43ebf5 100644
--- a/alc/alc.cpp
+++ b/alc/alc.cpp
@@ -976,7 +976,11 @@ void alc_initconfig(void)
if(auto loglevel = al::getenv("ALSOFT_LOGLEVEL"))
{
long lvl = strtol(loglevel->c_str(), nullptr, 0);
- if(lvl >= static_cast<long>(LogLevel::Disable) && lvl <= static_cast<long>(LogLevel::Ref))
+ if(lvl >= static_cast<long>(LogLevel::Trace))
+ gLogLevel = LogLevel::Trace;
+ else if(lvl <= static_cast<long>(LogLevel::Disable))
+ gLogLevel = LogLevel::Disable;
+ else
gLogLevel = static_cast<LogLevel>(lvl);
}