Commit 604dcfb4 authored by wujing's avatar wujing

fix issue when exchange NFAPI_TRACE level to OAI LOG level

parent 535cabeb
...@@ -197,19 +197,19 @@ static pthread_t pnf_start_pthread; ...@@ -197,19 +197,19 @@ static pthread_t pnf_start_pthread;
int nfapitooai_level(int nfapi_level) { int nfapitooai_level(int nfapi_level) {
switch(nfapi_level) { switch(nfapi_level) {
case NFAPI_TRACE_ERROR: case NFAPI_TRACE_ERROR:
return LOG_ERR; return OAILOG_ERR;
case NFAPI_TRACE_WARN: case NFAPI_TRACE_WARN:
return LOG_WARNING; return OAILOG_WARNING;
case NFAPI_TRACE_NOTE: case NFAPI_TRACE_NOTE:
return LOG_INFO; return OAILOG_INFO;
case NFAPI_TRACE_INFO: case NFAPI_TRACE_INFO:
return LOG_DEBUG; return OAILOG_DEBUG;
} }
return LOG_ERR; return OAILOG_ERR;
} }
void pnf_nfapi_trace(nfapi_trace_level_t nfapi_level, const char *message, ...) { void pnf_nfapi_trace(nfapi_trace_level_t nfapi_level, const char *message, ...) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment