From 2e3bd696e7f5654dac0dc09fadc741b1d10aa2b5 Mon Sep 17 00:00:00 2001 From: jpic Date: Wed, 4 May 2016 22:42:47 +0200 Subject: [PATCH] Update debug logs --- representatives_votes/contrib/parltrack/import_votes.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/representatives_votes/contrib/parltrack/import_votes.py b/representatives_votes/contrib/parltrack/import_votes.py index 068830d..270a0e5 100644 --- a/representatives_votes/contrib/parltrack/import_votes.py +++ b/representatives_votes/contrib/parltrack/import_votes.py @@ -97,6 +97,8 @@ def parse_proposal_data(self, proposal_data, dossier_pk): changed = True if changed: + logger.debug('Saving proposal %s' % + proposal_data.get('epref', proposal_data['title'])) proposal.save() responses = vote_pre_import.send(sender=self, vote_data=proposal_data) @@ -104,8 +106,9 @@ def parse_proposal_data(self, proposal_data, dossier_pk): for receiver, response in responses: if response is False: logger.debug( - 'Skipping dossier %s', proposal_data.get( - 'epref', proposal_data['title'])) + 'Skipping votes for dossier %s because of %s', + proposal_data.get( 'epref', proposal_data['title']), + receiver) return positions = ['For', 'Abstain', 'Against']