restic / rest-server

Rest Server is a high performance HTTP server that implements restic's REST backend API.
BSD 2-Clause "Simplified" License
899 stars 139 forks source link

Prepend log with date/time #245

Open hydrapolic opened 1 year ago

hydrapolic commented 1 year ago

Output of rest-server --version

restic/rest-server:0.12.1-amd64

REPOSITORY           TAG            IMAGE ID       CREATED        SIZE
restic/rest-server   0.12.1-amd64   0384c3e2599f   4 days ago     18MB

What should rest-server do differently?

Currently the rest-server writes to stdout without date information like:

WARNING: fsync is not supported by the data storage. This can lead to data loss, if the system crashes or the storage is unexpectedly disconnected.
WARNING: fsync is not supported by the data storage. This can lead to data loss, if the system crashes or the storage is unexpectedly disconnected.
Reloaded htpasswd file
Creating repository directories in /data/repo

It would be handy seeing when this actually happened.

What are you trying to do? What is your use case?

Just checking the logs if everything is ok on the server side.

Did rest-server help you today? Did it make you happy in any way?

I'm just migrating my custom backup scripts & rsync to restic & rest-server combo and it's really great. Much appreciated for having this nice application around, thank you!