Prevent empty log files.