Skip to content

Commit

Permalink
Slightly more informative error message for logging
Browse files Browse the repository at this point in the history
  • Loading branch information
EricSoroos committed Apr 9, 2018
1 parent 0a40152 commit 17ce369
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ckanext/harvest/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@ def create(cls, message, object, stage=u'Fetch', line=None):
finally:
log_message = '{0}, line {1}'.format(message, line) \
if line else message
log.debug(log_message)
log.debug('HarvestObjectError: %s' %log_message)


class HarvestLog(HarvestDomainObject):
'''HarvestLog objects are created each time something is logged
Expand Down

0 comments on commit 17ce369

Please sign in to comment.