CHANGE: Make sure the log file is str()