Skip to content
Snippets Groups Projects
Commit ebc57bca authored by Ryan Sanford's avatar Ryan Sanford
Browse files

Remove merge conflict content

parent 2efd3fdd
No related branches found
No related tags found
No related merge requests found
......@@ -366,17 +366,13 @@ class RequestHandler(webapp2.RequestHandler):
if k == 'group':
context[k]['label'] = v.get('name')
log_map['context'] = context
<<<<<<< Updated upstream
access_log.info(json.dumps(log_map, sort_keys=True, default=custom_json_serializer))
=======
try:
config.log_db.access_log.insert_one(log_map)
except Exception as e:
config.log.exception(e)
self.abort(500, 'Unable to log access.')
>>>>>>> Stashed changes
def dispatch(self):
"""dispatching and request forwarding"""
......
......@@ -17,22 +17,7 @@ AccessType = util.Enum('AccessType', {
'user_logout': 'user_logout'
})
<<<<<<< Updated upstream
access_log = logging.getLogger('scitran.access')
formatter = logging.Formatter('%(message)s')
try:
access_log_filename = config.get_item('core', 'access_log_path')
except ServerSelectionTimeoutError:
access_log_filename = config.DEFAULT_CONFIG['core']['access_log_path']
handler = logging.FileHandler(access_log_filename)
handler.setFormatter(formatter)
access_log.addHandler(handler)
access_log.setLevel(logging.INFO)
=======
>>>>>>> Stashed changes
class SciTranRequest(Request):
"""Extends webob.request.Request"""
def __init__(self, *args, **kwargs):
......@@ -83,4 +68,3 @@ def log_access(access_type, cont_kwarg='cont_name', cont_id_kwarg='cid'):
return result
return log_user_access_from_request
return log_access_decorator
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment