Merge pull request #186 in FS/freeswitch from ~CODE.VINEET/freeswitch-fs-7269:master to master
* commit '299b313b786a4a3e999a5503e7b303991c9c3cd6': FS-7269 : Add error logs in exec_user_method() when exception occurs.
This commit is contained in:
commit
18313699fc
|
@ -128,6 +128,7 @@ static switch_status_t exec_user_method(user_method_t * userMethod) {
|
||||||
|
|
||||||
if (class == NULL) {
|
if (class == NULL) {
|
||||||
(*env)->ExceptionDescribe(env);
|
(*env)->ExceptionDescribe(env);
|
||||||
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "%s Class not found\n",userMethod->class);
|
||||||
status = SWITCH_STATUS_FALSE;
|
status = SWITCH_STATUS_FALSE;
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
@ -136,6 +137,7 @@ static switch_status_t exec_user_method(user_method_t * userMethod) {
|
||||||
|
|
||||||
if (method == NULL) {
|
if (method == NULL) {
|
||||||
(*env)->ExceptionDescribe(env);
|
(*env)->ExceptionDescribe(env);
|
||||||
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "%s Method not found\n",userMethod->method);
|
||||||
status = SWITCH_STATUS_FALSE;
|
status = SWITCH_STATUS_FALSE;
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
@ -145,6 +147,7 @@ static switch_status_t exec_user_method(user_method_t * userMethod) {
|
||||||
|
|
||||||
if (arg == NULL) {
|
if (arg == NULL) {
|
||||||
(*env)->ExceptionDescribe(env);
|
(*env)->ExceptionDescribe(env);
|
||||||
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Args not found\n");
|
||||||
status = SWITCH_STATUS_FALSE;
|
status = SWITCH_STATUS_FALSE;
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue