- Fixed job to only write to a log file if logging is active.