add logic to prevent error from displaying in onApplicationStart only if debuggingenabled=false