Skip to content

Commit

Permalink
remove logging
Browse files Browse the repository at this point in the history
  • Loading branch information
zelima committed Mar 7, 2019
1 parent 08cf2ed commit e0a5409
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions ckanext/opendatani/helpers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import logging
import re
from six import string_types, text_type

Expand Down Expand Up @@ -39,7 +38,7 @@ def get_snippet_organization(activity, detail):
return activity['data']['group'].get('title') or activity['data']['group']['name']

def get_snippet_extra(activity, detail):
return '%s' % detail['data']['package_extra']['key']
return detail['data']['package_extra']['key']

def get_snippet_resource(activity, detail):
return detail['data']['resource'].get('title') or detail['data']['resource']['name']
Expand Down Expand Up @@ -98,14 +97,9 @@ def activity_list_to_text(activity_stream):
snippet = activity_snippet_functions[match](activity, detail)
data[str(match)] = snippet

logging.error(activity_msg)
logging.error(data)
logging.error('=======++++++++++++++++++++++++++++++++++++++++++++++')
activity_list.append({'msg': activity_msg.format(**data),
'type': activity_type.replace(' ', '-').lower(),
'timestamp': activity['timestamp'],
'is_new': activity.get('is_new', False),
'dataset_url': get_dataset_url(activity)})
logging.error(data)
logging.error('llllllllllllllllllllllllllllllllllllllllllllllll')
return activity_list

0 comments on commit e0a5409

Please sign in to comment.