GSA / ckanext-geodatagov

data.gov extension
Other
35 stars 39 forks source link

Logging not working properly #117

Open adborden opened 5 years ago

adborden commented 5 years ago

Log statements are not being logged correctly despite the ckanext logger being configured correctly. Other extensions log properly.

Steps to reproduce

  1. Remove ckanext_geodatagov entry from the /etc/ckan/production.ini config
  2. sudo ckan --plugin=ckanext-geodatagov geodatagov clean-deleted

Expected

Log statements appear for extension: 2019-05-03 22:54:32,340 INFO [ckanext.geodatagov] Starting delete for clean-deleted

Actual

Log statements appear, but only for other extensions.

adborden commented 5 years ago

As a work-around, we configure a log handler just for ckanext.geodatagov and all loggers in the extension should use this exact name.