Re: Local variable dump on exception in production environment (DEBUG=False)

2019-02-03 Thread Web Architect
Hi Simon, Thanks for your response. include_html was what I needed and the stack trace in mail contained the variable dump. Thanks a lot. On Friday, February 1, 2019 at 10:15:53 PM UTC+5:30, Simon Charette wrote: > > Hello there, > > I haven't tried it myself but you could try subclassing >

Re: Local variable dump on exception in production environment (DEBUG=False)

2019-02-01 Thread Simon Charette
Hello there, I haven't tried it myself but you could try subclassing django.utils.log.AdminEmailHandler to rely on the better-exceptions[0] package to _better_ format exceptions sent in text emails or simply set the include_html option[1] to True in your LOGGING configuration to get report simi

Re: Local variable dump on exception in production environment (DEBUG=False)

2019-02-01 Thread vineeth sagar
Ha, Hope you find a solution with django itself, sentry integration is just two lines and boom all uncaught exceptions, logger.error,exception,critical are automatically reported. Goodluck regards Vineeth On Fri, Feb 1, 2019 at 4:45 PM Web Architect wrote: > Hi Vineeth, > > Thanks for the info.

Re: Local variable dump on exception in production environment (DEBUG=False)

2019-02-01 Thread Web Architect
Hi Vineeth, Thanks for the info. Sentry sounds interesting and we will have a look at Sentry as it might need integration. Django does report function trace via mails but we are looking for the local variable trace also . Was hoping a small tweak in django should help. Thanks. On Friday, Fe

Re: Local variable dump on exception in production environment (DEBUG=False)

2019-02-01 Thread vineeth sagar
Hi, I am not sure about django, but you can have a look at sentry, we use it in production and it gives everything you ask for. I am sure Django also does it but I find sentry better for error reporting. regards Vineeth On Feb 1, 2019 3:41 PM, "Web Architect" wrote: > Hi, > > In our production

Local variable dump on exception in production environment (DEBUG=False)

2019-02-01 Thread Web Architect
Hi, In our production environment, we receive mail whenever an exception happens in our django application. But it contains only the function traces. The log will be helpful it also contains data dump or the local variable dump for each function trace. The exception trace on the browser in our