Skip to content

Commit

Permalink
Improved error logging on parsing KV flags for lookup()
Browse files Browse the repository at this point in the history
(cherry picked from commit 397e1da)
  • Loading branch information
bogdan-iancu committed May 23, 2023
1 parent 1c96fb5 commit 68f3653
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/reg/lookup.c
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,8 @@ int reg_fixup_lookup_flags(void** param)
if (flag_vals[1].s) {
if (str2int(&flag_vals[1],
(unsigned int*)&lookup_flags->max_latency) < 0) {
LM_ERR("value is not an integer\n");
LM_ERR("max-ping-latency [%.*s] value is not an integer\n",
flag_vals[1].len, flag_vals[1].s);
return -1;
}

Expand Down

0 comments on commit 68f3653

Please sign in to comment.