Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » Django
  • » Logging Handler AdminEmailHandler not working [RSS Feed]

#1 Dec. 15, 2010 21:36:07

Adrián R.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Logging Handler AdminEmailHandler not working


I get an error when using AdminEmailHandler.

The error message is: __init__() takes at least 5 non-keyword
arguments (2 given)

is in django/django/utils/log.py in emit line 90:

reporter = ExceptionReporter(request, is_email=True, *exc_info)

where exc_info = ()

Is it a bug or I'm missing something?

Thank you,

Adrian

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#2 Dec. 27, 2010 17:39:20

j.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Logging Handler AdminEmailHandler not working


I'm seeing the same error. It looks an awful lot like a bug, because
the parameters don't line up to the ExceptionReporter:

def __init__(self, request, exc_type, exc_value, tb, is_email=False):

It looks like *exc_info should contain the kwargs for exc_type,
exc_value, and maybe tb, but it's assigned to exc_info = () if there
is no stack trace available.

I created a ticket (http://code.djangoproject.com/ticket/14972), but
don't know enough about the logging design to determine if a patch
goes in AdminEmailHandler or ExceptionReporter. I'll try to read
through some of the logging design discussion, but I'm thinking I'll
need some more feedback on this.

This does seem to break the AdminEmailHandler functionality, which is
critical for 1.3 release.

-Ben

On Dec 15, 4:36 pm, Adrián Ribao <ari...@gmail.com> wrote:
> I get an error when using AdminEmailHandler.
>
> The error message is: __init__() takes at least 5 non-keyword
> arguments (2 given)
>
> is in django/django/utils/log.py in emit line 90:
>
> reporter = ExceptionReporter(request, is_email=True, *exc_info)
>
> where exc_info = ()
>
> Is it a bug or I'm missing something?
>
> Thank you,
>
> Adrian

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

  • Root
  • » Django
  • » Logging Handler AdminEmailHandler not working [RSS Feed]

Board footer

Moderator control

Enjoy the 12th of December
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support