Skip to content

Commit 397e1da

Browse files
committed
Improved error logging on parsing KV flags for lookup()
1 parent f9cade9 commit 397e1da

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/reg/lookup.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,8 @@ int reg_fixup_lookup_flags(void** param)
518518
if (flag_vals[1].s) {
519519
if (str2int(&flag_vals[1],
520520
(unsigned int*)&lookup_flags->max_latency) < 0) {
521-
LM_ERR("value is not an integer\n");
521+
LM_ERR("max-ping-latency [%.*s] value is not an integer\n",
522+
flag_vals[1].len, flag_vals[1].s);
522523
return -1;
523524
}
524525

0 commit comments

Comments
 (0)