Changed the way it logs