Extend dump backend to be able to write to a file

This commit is contained in:
Philipp Wolfer 2025-05-24 11:33:10 +02:00
parent 975e208254
commit d250952678
No known key found for this signature in database
GPG key ID: 8FDF744D4919943B
2 changed files with 74 additions and 9 deletions

View file

@ -141,4 +141,10 @@ client-secret = ""
[service.dump]
# This backend allows writing listens and loves as console output. Useful for
# debugging the export from other services.
backend = "dump"
backend = "dump"
# Path to a file where the listens and loves are written to. If not set,
# the output is written to stdout.
file-path = ""
# If true (default), new listens will be appended to the existing file. Set to
# false to overwrite the file on every run.
append = true