Cleaned up code that caused logging bug