Skip to content

Reduce logging verbosity of the OpenVPN RoadWarrior connection merge script #1830

Description

@m-dilorenzi

Description

The script responsible for merging OpenVPN RoadWarrior connection records
currently produces an excessive amount of log entries. It logs on every
execution cycle, even when there are no records to merge, which pollutes the
system logs and makes it harder to spot the events that actually matter.

Current behavior

  • The script logs verbosely on each run, regardless of whether any real merge
    operation takes place.
  • Log entries are generated even when there is nothing to move from RAM to
    persistent storage.

Expected behavior

  • The script should log only when an actual merge of connection records
    occurs, i.e. when records are moved from RAM (/var/openvpn/...) to persistent
    storage (/mnt/data/openvpn/...).
  • When no merge is performed, the script should run silently (no log output).

Rationale

Logging only on real merge events will:

  • significantly reduce log noise,
  • keep the logs focused on meaningful operations,
  • make troubleshooting easier by ensuring each log line corresponds to an
    actual data movement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    verifiedAll test cases were verified successfully

    Projects

    Status
    Verified

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions