Skip to content
Commit 820fca76 authored by Ryan Erickson's avatar Ryan Erickson Committed by Carles Cufí
Browse files

logging: fs backend: only delete old files if necessary



During initialization of the FS backed, the oldest
file is always deleted.
Fix this to prevent throwing away useful historic logs.
If there is space left in the newest file, append to it instead
of creating a new file and removing the oldest.

Signed-off-by: default avatarRyan Erickson <ryan.erickson@lairdconnect.com>
parent 3f628604
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment