[issue34307] NullHandler init refusing arguments

2018-08-01 Thread Vinay Sajip
Vinay Sajip added the comment: > I expected it to be a "dummy" handler that might accept any argument I don't know why you expected that, but your expectation wasn't valid. You will need to define your own BaseHandler which handles any arguments passed by your logging configuration.

[issue34307] NullHandler init refusing arguments

2018-08-01 Thread Berker Peksag
Change by Berker Peksag : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34307] NullHandler init refusing arguments

2018-08-01 Thread Romuald Brunet
Change by Romuald Brunet : -- keywords: +patch pull_requests: +8111 stage: -> patch review ___ Python tracker ___ ___

[issue34307] NullHandler init refusing arguments

2018-08-01 Thread Romuald Brunet
New submission from Romuald Brunet : Context: I'm using a custom Handler that relies on a third-party library that may not be present try: from acme.logging import CustomHandler as BaseHandler except ImportError: import logging.NullHandler as BaseHandler class