Fix to ensure debug based logging functions