Hi Jerry,


> 22/05/2015 09:21:21.000018 [DEBUG] Query()                    #first log
> DEBUG:uwsgi_file__ws_uwsgi_webservice_my_test:Query()        #second log
>
>
Having double logging means that the Python logging has two logging handler
configured. Your and then maybe the default one. I'd suspect what happens
is that you have 1) your custom logging handler 2) Python root logging
handler configured.

You can check what handlers there is configured for Python logging by doing:

print(mylogger.handlers)
print(mylogger.root.handlers)


-- 
Mikko Ohtamaa
http://opensourcehacker.com
http://twitter.com/moo9000
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to