Bug#971090: asterisk: syslog logging print double linees, one with colouring escapes...
Marco Gaiarin
gaio at linux.it
Sun Sep 27 17:58:47 BST 2020
Package: asterisk
Version: 1:16.2.1~dfsg-1+deb10u2
Severity: minor
Dear Maintainer,
I've just installed asterisk in buster, and i've enabled syslog logging, adding/decommenting
in 'logger.conf' the row:
syslog.local0 => notice,warning,error
After that, i found in syslog the asterisk row (as expected), but most of the row are
dupes, and one of them have ANSI colour escaping code, an example:
Sep 27 09:02:06 vpbxlpb1 asterisk[363]: NOTICE[1337]: chan_sip.c:24888 in handle_response_peerpoke: Peer '213' is now Reachable. (92ms / 200ms)
Sep 27 09:02:06 vpbxlpb1 asterisk[363]: [Sep 27 09:02:06] #033[1;33mNOTICE#033[0m[1337]: #033[1;37mchan_sip.c#033[0m:#033[1;37m24888#033[0m #033[1;37mhandle_response_peerpoke#033[0m: Peer '213' is now Reachable. (92ms / 200ms)
I've removed 'notice' from syslog row, and now double lines seems not appear anymore,
but probably because i've not so frequent warnings and errors. ;-)
Could be that these lines come from systemd? Anyway, using ANSI colour code in syslog is
really a bad thing. ;-)
Thanks.
-- System Information:
Debian Release: 10.6
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.19.0-11-amd64 (SMP w/2 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), LANGUAGE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages asterisk depends on:
ii adduser 3.118
ii asterisk-config 1:16.2.1~dfsg-1+deb10u2
ii asterisk-core-sounds-en 1.6.1-1
ii asterisk-modules 1:16.2.1~dfsg-1+deb10u2
ii libc6 2.28-10
ii libcap2 1:2.25-2
ii libedit2 3.1-20181209-1
ii libjansson4 2.12-1
ii libpopt0 1.16-12
ii libsqlite3-0 3.27.2-3
ii libssl1.1 1.1.1d-0+deb10u3
ii libsystemd0 241-7~deb10u4
ii liburiparser1 0.9.1-1
ii libuuid1 2.33.1-0.1
ii libxml2 2.9.4+dfsg1-7+b3
ii libxslt1.1 1.1.32-2.2~deb10u1
ii lsb-base 10.2019051400
Versions of packages asterisk recommends:
ii asterisk-moh-opsound-gsm 2.03-1
ii asterisk-voicemail [asterisk-voicemail-storage] 1:16.2.1~dfsg-1+deb10u2
ii sox 14.4.2+git20190427-1
Versions of packages asterisk suggests:
pn asterisk-dahdi <none>
ii asterisk-dev 1:16.2.1~dfsg-1+deb10u2
pn asterisk-doc <none>
pn asterisk-ooh323 <none>
pn asterisk-opus <none>
pn asterisk-vpb <none>
-- no debconf information
More information about the Pkg-voip-maintainers
mailing list