Fixed the logging and deleted the log file