Add feature to change debug level dynamically