NebulousLabs / docker-sia

The official docker image for the Sia daemon
https://sia.tech
MIT License
20 stars 1 forks source link

Capture siad's logs #25

Closed ro-tex closed 4 years ago

ro-tex commented 4 years ago

When Sia is running in a container we don't see its output. Let's redirect both stdout and errout to files within the data directory.

jkawamoto commented 4 years ago

I think it'd be better to keep outputting logs to stdout and stderr so that we can get them with docker logs (or kubectl logs if the container is running with k8s).

ro-tex commented 4 years ago

That's a good point. I think we can have both, so even people who are not very familiar with Docker can take a look at the logs.

What I have right now is the following:

If people want to preserve the logs between executions they should wrap the start of the Sia docker in a script that copies the old logs to an archive location.

jkawamoto commented 4 years ago

Sounds good to me. Thanks!