remove unnecessary debug logging, retrieve log messages more often, clear log file when starting a new job