Skip to content

NethVoice: reduce log verbosity #8173

Description

@gsanchietti

NethVoice logs are too verbose during normal operation.
Most of the lines are generated by Janus which is configured in info level.
Then, FreePBX, NethCTI middleware, NethCTI server, Satellite and Tancredi (in debug mode).

Also Kamailio produced a very large of useless log, it will be handled in a different issue.

The purpose is to keep the journal small, make real errors visible, and still allow raising the verbosity if needed.

Proposed solution

Lower the default log level of the components that currently run at their loudest setting, and expose each level as a module environment variable.

Component Current default Proposed default Variable
Janus 5 3, warnings and errors JANUS_DEBUG_LEVEL
Tancredi DEBUG WARNING TANCREDI_LOG_LEVEL (new)
NethCTI middleware debug mode release mode NETHVOICE_MIDDLEWARE_GIN_MODE (new)
Reports API release mode release mode REPORTS_GIN_MODE (explicit)
FreePBX: supervisord, cron, PAM every job start, end and session failures only FREEPBX_LOG_LEVEL (new)
Satellite INFO, the image default WARNING SATELLITE_LOG_LEVEL (new)

On existing installations JANUS_DEBUG_LEVEL is lowered only when it still holds the old default of 5.

Satellite at INFO logged every RTP stream, every ARI channel event and every HTTP request, and uvicorn added its own access lines. The value also sets uvicorn's level.

For FreePBX the cron and PAM lines are few. The image replaces FreePBX's cron manager with a noop and ships no asterisk crontab: the spool is empty and /etc/crontab carries only the four stock run-parts entries, which run as root and at most hourly. FREEPBX_LOG_LEVEL is still worth having, but it removes little volume.

Most of what the FreePBX container writes comes out at container start: on an idle system a restart produces about 550 journal lines, largely fwconsole progress bars and blank lines, and then it stays silent. That is a separate problem and is not addressed here.

Please note that NethCTI middleware was running in debug mode with CORS checks disabled.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    testingPackages are available from testing repositories

    Projects

    • Status
      Testing

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions