The logging level is checked in welsCodecTrace anyway. Previously, error logging wasn't ever shown if the trace level was set to WELS_LOG_ERROR (as it was by default), since welsStderrLevelTrace required the message level to be strictly lower than the trace level.
Showing the changes to codec/common/src/welsCodecTrace.cpp (1 of 3 files). Show all
Unified · Split
| @@ -108,7 +108,6 @@ void welsCodecTrace::CODEC_TRACE (void* ignore, const int32_t iLevel, const char · 107 unmodified lines | |||
| 108 | void welsCodecTrace::SetTraceLevel (const int32_t iLevel) { | 108 | void welsCodecTrace::SetTraceLevel (const int32_t iLevel) { |
| 109 | if (iLevel >= 0) | 109 | if (iLevel >= 0) |
| 110 | m_iTraceLevel = iLevel; | 110 | m_iTraceLevel = iLevel; |
| 111 | WelsStderrSetTraceLevel (iLevel); | ||
| 112 | } | 111 | } |
| 113 | 112 | ||
| 114 | 113 | ||