[sr-dev] [kamailio/kamailio] "debug: previous udp send returned non zero" for every log message being sent to remote server with log_custom (#2452)

Daniel-Constantin Mierla notifications at github.com
Mon Aug 24 10:08:57 CEST 2020


Thanks for digging further into it. The change was done to avoid looping back to the same function if the `log_custom` was set as custom logging backend in the core. However, if udp_send() fails for first message, likely to fail for saying the previous execution step failed. So I changed that to printing to stderr directly, just to have a way to try to troubleshoot such cases.

And indeed, send_udp() returns the value of the sendto() and should be positive in case of a successful operation.

The fixes are in master and 5.4 branches -- reference commit: f16d046f6330f897b374d9bb7dab3b2ce8eab3a7 .

Test and if still issues, reopen.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2452#issuecomment-678976694
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20200824/43e21d91/attachment-0001.htm>


More information about the sr-dev mailing list