Stop debug messages showing unless we need them.