[sr-dev] log_custom module - LC_LOG_MSG_MAX_SIZE

Henning Westerholt hw at kamailio.org
Fri Nov 9 10:52:13 CET 2018


Am Donnerstag, 8. November 2018, 10:09:23 CET schrieb Luis Martin Gil:
> Is there any strong reason to set LC_LOG_MSG_MAX_SIZE to 16384 in the
> log_custom module? Any thoughts / undesired effects if changed to 32768 or
> higher?
> 
> ```
> $ grep -R 'define LC_LOG_MSG_MAX_SIZE' *
> src/modules/log_custom/log_custom_mod.c:#define LC_LOG_MSG_MAX_SIZE 16384
> src/modules/log_systemd/log_systemd_mod.c:#define LC_LOG_MSG_MAX_SIZE 16384

Hello Luis,

the module will need (insignificant) more memory if you increase it, otherwise 
there should be no effects.

Do you see any errors related to the default setting? This #define is the log 
buffer for printing the log string before sending it to somewhere else via 
UDP.

Best regards,

Henning

-- 
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://skalatan.de/services
Kamailio security assessment - https://skalatan.de/de/assessment



More information about the sr-dev mailing list