Skip to content

Commit

Permalink
[RT Common] Prevent empty VPL log and DDI trace file during runtime f…
Browse files Browse the repository at this point in the history
…or debug build when log is disabled (#6231)

Co-authored-by: walter-bai <[email protected]>
  • Loading branch information
gfxVPLsdm and walter-bai authored Dec 11, 2023
1 parent b39ad74 commit b2e4dbb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions _studio/shared/mfx_logging/src/mfx_utils_logging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ inline bool SetLogLevelFromEnv()

inline void SetLogFileFromEnv()
{

if (gMfxLogLevel == LEVEL_DISABLED)
{
return;
}

const char* logFileName = std::getenv("VPL_RUNTIME_LOG_FILE");
if (logFileName && gMfxLogFile == nullptr)
{
Expand Down

0 comments on commit b2e4dbb

Please sign in to comment.