python - Why does uncaught exception get logged to Sentry twice? -


I was testing that the exception in my flask app will be logged in Senty and it must be seen that the only exception is always Logged twice, clearly why a different stack trace happens and how should I stop it?

For the first entry, I am getting the following stack trace:

  file "raven / middleware", line 35, line 1820, __call__ iterable = self.application ( environment, start_response) file "flask / app.py", = self.make_response (self.handle_exception (e) in wsgi_app response) file "flask / app.py", line 1403, handle_exception reraise (exc_type, exc_value, TB) File "floppy / app.py", line 1817, wsgi_app in response = self.full_dispatch_request () file "flask / app.py", line 1477, full_dispatch_request RV. In = self.handle_user_exception (e) File "flask / app.py", line 1381, handle_user_exception reraise (exc_type, exc_value, TB) file "flask / app.py", line 1475, in full_dispatch_request RV In = self.dispatch_request () File "flask / Apiaipiapi", line 1461, self.view_functions in Dispac_rekvist returns [rule.endpoint] (** req.view_args) file "app / Apiaiaidii / Security / Sjavtkanputr", line 52, decorated been sel  

Fu exception) stack trace in the second entry, file app / api_1_0 / security / decorators.py ", increase _process FooException in line 27 (" Proprose follows:

  file "flask / appp", line 1817, in wsgi_app response = self.full_dispatch_request () f Il "flask / app.py", line 1477, full_dispatch_request RV = self.handle_user_exception (e) File "flask / app.py", line 1381, handle_user_exception reraise (exc_type, exc_value, TB) file "flask / app Kpy ", line 1475, in full_dispatch_request RV = itself. dispatch_request () file" flask / app.py ", line 1461, dispatch_request return self.view_functions [rule.endpoint] in (** req.view_args ) File "app / api_1_0 / security / decorators.py", line 52, decorated in the self._process (permission) file "app / api_1_0 / security / decorators.py", line 27, _process lifting FooException ('_process foo Exception ')  

Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -