Commits

Raimon Esteve (Zikzakmedia)  committed 2e16540

pyflakes

  • Participants
  • Parent commits 3943e36

Comments (0)

Files changed (1)

File subscription.py

 import contextlib
 import logging
 
-__all__ = [
-    'SubscriptionSubscription',
-    'SubscriptionLine',
-    'SubscriptionHistory',
-]
+__all__ = ['SubscriptionSubscription', 'SubscriptionLine', 'SubscriptionHistory']
 
 STATES = {
     'readonly': Eval('state') == 'running',
 
     @classmethod
     def model_copy(cls, subscription_id):
-        logger.info('Running subscription ID %s.' % subscription_id)
+        logging.getLogger('subscription').info(
+            'Running subscription ID %s' % (subscription_id))
 
         Cron = Pool().get('ir.cron')
         History = Pool().get('subscription.history')