Closed pprindeville closed 2 years ago
I asked on #asterisk
on libera and I'm told that this issue isn't present on other distros.
I uncommented this line:
full => notice,warning,error,debug,verbose,dtmf,fax
in logger.conf
and indeed there are truncated lines in full
as well.
I think it works as designed. main/logger.c uses BUFSIZ from stdio.h. musl defines it as 1024, glibc for instance defines it 8192. If a big enough log entry is provided the truncation would happen with glibc as well. To try it out you could increase BUFSIZ in stdio.h and see if the truncation happens after more chars (or not at all if you increase BUFSIZ enough). I didn't have time for that yet.
Submitted upstream fix as https://gerrit.asterisk.org/c/asterisk/+/18069
Fixed in 18.12.0 and 19.4.0 upstream, both released today.
Your patch was already applied here I reckon.
Maintainer: @jslachta Environment: x86_64, generic, HEAD
Description:
I'm seeing truncated output when tracing PJSIP such as:
Note the incomplete last line.