Parse log level (int64) from environment variable (char*)
| 51 | |
| 52 | // Parse log level (int64) from environment variable (char*) |
| 53 | static 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. |
| 61 | struct StringData { |
no test coverage detected