Fix for null debug
Signed-off-by: Alejandro Saucedo <axsauze@gmail.com>
This commit is contained in:
parent
698001b8a0
commit
3eb97dbd05
1 changed files with 2 additions and 2 deletions
|
|
@ -179,9 +179,9 @@ Manager::createInstance()
|
||||||
};
|
};
|
||||||
std::vector<std::string> envLayerNames;
|
std::vector<std::string> envLayerNames;
|
||||||
const char* envLayerNamesVal = std::getenv("KOMPUTE_ENV_DEBUG_LAYERS");
|
const char* envLayerNamesVal = std::getenv("KOMPUTE_ENV_DEBUG_LAYERS");
|
||||||
KP_LOG_DEBUG("Kompute Manager adding environment layers: {}",
|
|
||||||
envLayerNamesVal);
|
|
||||||
if (envLayerNamesVal != NULL && *envLayerNamesVal != '\0') {
|
if (envLayerNamesVal != NULL && *envLayerNamesVal != '\0') {
|
||||||
|
KP_LOG_DEBUG("Kompute Manager adding environment layers: {}",
|
||||||
|
envLayerNamesVal);
|
||||||
std::istringstream iss(envLayerNamesVal);
|
std::istringstream iss(envLayerNamesVal);
|
||||||
std::istream_iterator<std::string> beg(iss), end;
|
std::istream_iterator<std::string> beg(iss), end;
|
||||||
envLayerNames = std::vector<std::string>(beg, end);
|
envLayerNames = std::vector<std::string>(beg, end);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue