MCPcopy Create free account
hub / github.com/Cambricon/mlu-ops / LogLevelStrToInt

Function LogLevelStrToInt

core/logging.cpp:53–58  ·  view source on GitHub ↗

Parse log level (int64) from environment variable (char*)

Source from the content-addressed store, hash-verified

51
52// Parse log level (int64) from environment variable (char*)
53static int64_t LogLevelStrToInt(const char* mluop_env_var_val) {
54 if (mluop_env_var_val == nullptr) {
55 return 0;
56 }
57 return ParseInteger(mluop_env_var_val, strlen(mluop_env_var_val));
58}
59
60// Using StringPiece breaks Windows build.
61struct StringData {

Callers 1

MinVLogLevelFromEnvFunction · 0.85

Calls 1

ParseIntegerFunction · 0.85

Tested by

no test coverage detected