SWDEV-272673 - Add changes to dump log to a file
Env var AMD_LOG_LEVEL_FILE would dump the log to file. Change-Id: I6add4a1ae6788f376ce116797cc0573007502e73
This commit is contained in:
@@ -145,6 +145,12 @@ bool Flag::init() {
|
||||
flag.setValue(it->second);
|
||||
}
|
||||
}
|
||||
if (!flagIsDefault(AMD_LOG_LEVEL)) {
|
||||
if (!flagIsDefault(AMD_LOG_LEVEL_FILE)) {
|
||||
std::string fileName = AMD_LOG_LEVEL_FILE;
|
||||
outFile = fopen(fileName.c_str(), "w");
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Verwijs in nieuw issue
Block a user