fixed logging bug

fixing logging bug