Only log in debug mode