Apply the debugging level before starting discovery to prevent info messages from showing up during discovery