Exiting when there’s no space to write logs is what Google’s glog logging library does:
You can provide sufficient disk space for the log files. If you’re handling logs a different way and don’t need the log files that are written by glog, then you can use the flag --logtostderr, which will only log to stderr and not to files. You can alternatively set --log_dir to somewhere else other than /tmp, the default location.