json.c: Add backtrace log to find 'Invalid UTF-8 string' errors

Change-Id: I9020ff9f2b3749904317c0c173f47a1bbed6f929
This commit is contained in:
Richard Mudgett
2017-06-27 19:27:43 -05:00
parent 66eb4f34cf
commit 8a803f75a0

View File

@@ -825,6 +825,7 @@ struct ast_json *ast_json_vpack(char const *format, va_list ap)
ast_log(LOG_ERROR,
"Error building JSON from '%s': %s.\n",
format, error.text);
ast_log_backtrace();
}
}
return r;