From 718202d886141dc2bd39d43b59fb318e57e1e154 Mon Sep 17 00:00:00 2001 From: David Read Date: Tue, 10 Apr 2012 20:53:29 +0100 Subject: [PATCH] Logging is now assured. --- ckanext/harvest/plugin.py | 1 + ckanext/harvest/queue.py | 1 + 2 files changed, 2 insertions(+) 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']