You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
all log output from the screen gets written into a file like
/tmp/sbt12345678990.log
If an application runs for longer, say an hour or two, e.g. because it is web server, such a file easily exceed several GB. Since space in /tmp is limited, this makes my system crash or behave unpredictably.
I would expect to have a setting to prevent the file from beeing written, but could not find any.
To make things worse, the file gets not deleted when I stop "sbt run" by pressing Ctrl + C.
I would expect temporary files to be cleaned after termination.
The system is Ubuntu 14.04, and the behavior occurs with both sbt 0.13.5 and sbt 0.13.7. I did not try 0.13.6.
The text was updated successfully, but these errors were encountered:
I'm marking this as an enhancement for now, although one with higher priority than most.
Basically, we're pretty silly with files right now, and we don't do rolling writes. We literally try to save the logs and be able to conjure them up later. The fact it's not deleted and it's so large is an issue. This should be configurable, and logging in sbt, generally is an area that needs improvement.
Is there anything planned on changing this within SBT? I have /tmp mounted on a separate partition, and it sometimes happens that this partition fills up due to SBT log files.
For now I did not find a way to turn down at least the log level of what goes into these files.
99% of the time I do not need debug logs
When I run an application with
all log output from the screen gets written into a file like
If an application runs for longer, say an hour or two, e.g. because it is web server, such a file easily exceed several GB. Since space in /tmp is limited, this makes my system crash or behave unpredictably.
I would expect to have a setting to prevent the file from beeing written, but could not find any.
To make things worse, the file gets not deleted when I stop "sbt run" by pressing Ctrl + C.
I would expect temporary files to be cleaned after termination.
The system is Ubuntu 14.04, and the behavior occurs with both sbt 0.13.5 and sbt 0.13.7. I did not try 0.13.6.
The text was updated successfully, but these errors were encountered: