]> git.ipfire.org Git - thirdparty/asterisk.git/commit
logger.c: Automatically add a newline to formats that don't have one
authorGeorge Joseph <gjoseph@digium.com>
Thu, 10 Dec 2020 15:09:52 +0000 (08:09 -0700)
committerGeorge Joseph <gjoseph@digium.com>
Thu, 17 Dec 2020 15:12:35 +0000 (09:12 -0600)
commit5a2867efa9166f2fd8e327daa9ce0b794eca3e2d
tree023b7f1b2b53ee220629a2ff12929c3fcf07c851
parent11def974a84ea523b90e0ec6e9af43ff58b6eb14
logger.c: Automatically add a newline to formats that don't have one

Scope tracing allows you to not specify a format string or
variable, in which case it just prints the indent, file,
function, and line number.  The trace output automatically
adds a newline to the end in this case.  If you also have
debugging turned on for the module, a debug message is
also printed but the standard log functionality which
prints it doesn't add the newline so you have messages
that don't break correctly.

 * format_log_message_ap(), which is the common log
   message formatter for all channels, now adds a
   newline to the end of format strings that don't
   already have a newline.

ASTERISK-29209
Reported by: Alexander Traud

Change-Id: I994a7df27f88df343b7d19f3e81a4b562d9d41da
main/logger.c