diff --git a/ckanext/harvest/plugin.py b/ckanext/harvest/plugin.py index 951c78b..d14174f 100644 --- a/ckanext/harvest/plugin.py +++ b/ckanext/harvest/plugin.py @@ -13,6 +13,7 @@ from ckan.plugins import IConfigurable, IActions, IAuthFunctions from ckanext.harvest.model import setup as model_setup log = getLogger(__name__) +assert not log.disabled class Harvest(SingletonPlugin): diff --git a/ckanext/harvest/queue.py b/ckanext/harvest/queue.py index 002f49e..817a9ad 100644 --- a/ckanext/harvest/queue.py +++ b/ckanext/harvest/queue.py @@ -12,6 +12,7 @@ from ckanext.harvest.model import HarvestJob, HarvestObject,HarvestGatherError from ckanext.harvest.interfaces import IHarvester log = logging.getLogger(__name__) +assert not log.disabled __all__ = ['get_gather_publisher', 'get_gather_consumer', \ 'get_fetch_publisher', 'get_fetch_consumer']