chromelogger-python icon indicating copy to clipboard operation
chromelogger-python copied to clipboard

Not working on Firefox

Open jorrete opened this issue 9 years ago • 2 comments

Hi, Firefox has an option to activate server logging using this protocol. It is not working because in:

def _log(args):
    global backtraces

    type = args[0:1]
    ....

type it is assigning a array (slice returns an array) and somehow the firefox was throwing an error about not getting type method. I've changed to:

def _log(args):
    global backtraces

    type = args[0:1][0]
    ....

Seems to work in chrome and in the firefox implementation. Does it makes sense to you? Do you think it's a bug in firefox implementation?

Thanks!.

PD: I'm testing in django project and linux.

jorrete avatar Oct 03 '16 09:10 jorrete

I think it's a bug in this module as the example in the technical specification has the level as scalar value and not in an array. Putting something that's always a single value into an array doesn't make much sense anyway.

Marrin avatar Feb 23 '17 15:02 Marrin

Couldn't get module to work with Firefox/Falcon/Gunicorn, found this thread and have to thank @jorrete as this has fixed our issue too.

ghost avatar May 02 '17 09:05 ghost