Please add logging handler to pycountry.db.logger

Issue #3 wontfix
Fabian Büchler
created an issue

There is no default logging handler assinged to pycountry.db.logger. This results in warning messages whenever importing pycountry.

To reproduce: {{{

!bash

$ pip install pycountry $ python

import pycountry No handlers could be found for logger "pycountry.db" }}}

Not very harmful, but a little annoying :)

Comments (4)

  1. Anonymous

    Any chance you would reconsider? The warning is extremely tedious and unnecessary. The docs you link to suggest adding a NullHandler in a library to suppress the warning. Cheers.

  2. Log in to comment