[asterisk-bugs] [JIRA] (ASTERISK-29308) logger: JSON logging can be cut off with large contents

Joshua C. Colp (JIRA) noreply at issues.asterisk.org
Mon Feb 22 06:56:14 CST 2021


     [ https://issues.asterisk.org/jira/browse/ASTERISK-29308?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joshua C. Colp updated ASTERISK-29308:
--------------------------------------

    Summary: logger: JSON logging can be cut off with large contents  (was:  Logger cannot log long json lines properly )

> logger: JSON logging can be cut off with large contents
> -------------------------------------------------------
>
>                 Key: ASTERISK-29308
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29308
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/Logging
>    Affects Versions: 18.1.1
>         Environment: Alpine 3.13, Docker container
>            Reporter: angrygami
>
> When I configure logger to use json formatter like this:
> {code}
> messages => [json]notice,warning,error
> {code}
> and enable verbose logging for pjsip like this:
> {code}
> $ rasterisk -x 'pjsip set logger on'
> {code}
> After making some calls I noticed that log lines that are longer than 1024 symbols are cut off making json invalid and loosing information.
> See discussion: https://community.asterisk.org/t/logger-cannot-log-long-json-lines-properly/87618



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list