mwhooker / jsonselect

Python implementation of jsonselect (http://jsonselect.org/)
ISC License
26 stars 6 forks source link

No handlers could be found for logger "jsonselect.jsonselect" #4

Closed paasar closed 9 years ago

paasar commented 9 years ago

Hi,

I got following message: No handlers could be found for logger "jsonselect.jsonselect"

When running: python -m jsonselect itemId < file.json

Adding the following to jsonselect.py helped: logging.basicConfig()

And of course the problem does not happen when my command is correct and the program does not try to log anything: python -m jsonselect ".itemId" < file.json

mwhooker commented 9 years ago

Thanks for catching this. Almost every logging method except .exception calls logging.basicConfig.