Skip to content

Commit

Permalink
core: parse body - debug instead of error log message when mime mismatch
Browse files Browse the repository at this point in the history
- GH #1746

(cherry picked from commit 08820db)
(cherry picked from commit 81f3280)
(cherry picked from commit 2406463)
  • Loading branch information
miconda committed Apr 3, 2019
1 parent 1dbad33 commit 5c565d1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/core/parser/parse_body.c
Expand Up @@ -510,7 +510,11 @@ int part_multipart_headers_cmp (char *buffer,
}

if (error < 0) {
LM_ERR("part_multipart_headers_cmp. error. \"%i\". \"%s\".\n", error, error_msg);
if(error == -2) {
LM_DBG("result code: \"%i\" text: \"%s\".\n", error, error_msg);
} else {
LM_ERR("error code: \"%i\" error text: \"%s\".\n", error, error_msg);
}
return 0;
} else {
return found;
Expand Down

0 comments on commit 5c565d1

Please sign in to comment.