When we are attempting to reindex our account, we are receiving this response (using Algolia' django project)
No handlers could be found for logger "algoliasearch_django.models"
In addition to documenting how a library uses logging, a good way to configure library logging so that it does not cause a spurious message is to add a handler which does nothing.
This PR implements such a NullHandler. I'm not using the NullHandler class as it's only available with python > 3.1.
Following a Support ticket:
Indeed, we didn't follow the recommended way to Configure logging for a library:
This PR implements such a NullHandler. I'm not using the
NullHandler
class as it's only available withpython > 3.1
.