Closed ro-tex closed 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).
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:
stderr
and stdout
to disktail
those back to stderr
and stdout
, so Docker and K8s can pick them upIf 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.
Sounds good to me. Thanks!
When Sia is running in a container we don't see its output. Let's redirect both
stdout
anderrout
to files within the data directory.