diff options
author | Chris Robinson <[email protected]> | 2020-09-28 00:40:30 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-09-28 00:40:30 -0700 |
commit | da29489ead3ecfc269a220a22ee117d93bed23a6 (patch) | |
tree | 705498f9aaf0d5e71ca9590e477eb21642615e3c /alc/alc.cpp | |
parent | 39f4ea61c5978b7abca0ef79de0b207638e7175f (diff) |
Use an enum class for the log level
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r-- | alc/alc.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp index a870a565..2b9c9ce6 100644 --- a/alc/alc.cpp +++ b/alc/alc.cpp @@ -976,7 +976,7 @@ void alc_initconfig(void) if(auto loglevel = al::getenv("ALSOFT_LOGLEVEL")) { long lvl = strtol(loglevel->c_str(), nullptr, 0); - if(lvl >= NoLog && lvl <= LogRef) + if(lvl >= static_cast<long>(LogLevel::Disable) && lvl <= static_cast<long>(LogLevel::Ref)) gLogLevel = static_cast<LogLevel>(lvl); } @@ -1272,9 +1272,9 @@ int RTPrioLevel{1}; FILE *gLogFile{stderr}; #ifdef _DEBUG -LogLevel gLogLevel{LogWarning}; +LogLevel gLogLevel{LogLevel::Warning}; #else -LogLevel gLogLevel{LogError}; +LogLevel gLogLevel{LogLevel::Error}; #endif /************************************************ |