Changed the logging code, still no csv output