django-oscar / django-oscar-docdata

Docdata Payments Gateway integration for django-oscar
Apache License 2.0
22 stars 11 forks source link

Hacked log handler for 'suds.transport' #33

Open jedie opened 5 years ago

jedie commented 5 years ago

I haved made a simple log handler for 'suds.transport' that will print the binary output a little bit better to the console.

The normal output:

grafik

With this hacked handler:

grafik

Only tested for Python 3... Maybe Python 2 needs some extra handling...

jedie commented 5 years ago

What's about to move this out of sandbox into _django-oscar-docdata/oscardocdata ?

maerteijn commented 5 years ago

I'd say that this is suds (and your way of debugging) specific and not really something that belongs inoscar_docdata

jedie commented 5 years ago

Yes, you are right: The best place for this is the suds project.

But currently we use https://bitbucket.org/jurko/suds and we should switched to https://github.com/suds-community/suds #15

So i will create a pull request in https://github.com/suds-community/suds see also: https://github.com/suds-community/suds/issues/17

But maybe we should leave this in oscar-docdata until the changeover to suds-community is complete?