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.
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
operation takes place.
persistent storage.
Expected behavior
occurs, i.e. when records are moved from RAM (
/var/openvpn/...) to persistentstorage (
/mnt/data/openvpn/...).Rationale
Logging only on real merge events will:
actual data movement.