Made debug logging conditional