OP_LOGE_FOR_INVALID_CONFIG
Description
Records and reports an invalid configuration item value error. If the value of a configuration item in the configuration file is not as expected, an error log is generated and the error code EZ0032 is reported.
Prototype
OP_LOGE_FOR_INVALID_CONFIG(opName, configFile, item, value, expect)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
opName |
Input |
Operator name or aclnn API name. The type can be const char* or std::string. |
configFile |
Input |
Configuration file path. The type can be const char* or std::string. |
item |
Input |
Configuration item name. The type can be const char* or std::string. |
value |
Input |
Actual value. The type can be const char* or std::string. |
expect |
Input |
Expected value. The type can be const char* or std::string. |
Return Value
None.
Constraints
None.
Example
The following sample code is for reference only. Do not copy and run it.
1 2 3 4 | if (configValue != "3") { OP_LOGE_FOR_INVALID_CONFIG("MyOp", "config.ini", "version", configValue.c_str(), "3"); return ge::GRAPH_FAILED; } |
Parent topic: log