Skip to content
This repository has been archived by the owner on Dec 16, 2020. It is now read-only.

Commit

Permalink
demoting log entries to error
Browse files Browse the repository at this point in the history
  • Loading branch information
agroszer committed Nov 8, 2016
1 parent fba2e8a commit 9ccdc08
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cipher/session/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def _p_resolveConflict(self, old, committed, new):
# we are operating against the PersistentMapping.__getstate__
# representation, which aliases '_container' to self.data.
if not committed['data'] or not new['data']:
LOG.exception("Can't resolve 'clear'")
LOG.error("Can't resolve 'clear'")
raise ConflictError("Can't resolve 'clear'")

# save old state, messing with result_data overwrite state
Expand All @@ -101,7 +101,7 @@ def _p_resolveConflict(self, old, committed, new):
if neq:
# log everything, debugging ConflictResolution is hard
formatExtraData(extra, k=k, v=v, c_new=c_new, result=result)
LOG.exception("Conflicting insert", extra=extra)
LOG.error("Conflicting insert", extra=extra)
raise ConflictError("Conflicting insert")
if k in result_data:
continue
Expand All @@ -118,7 +118,7 @@ class SessionData(data.SessionData):
def _internalResolveConflict(self, resolved, old, committed, new):
extra = {}
formatExtraData(extra, old=old, committed=committed, new=new)
LOG.exception("Competing writes to session data:", extra=extra)
LOG.error("Competing writes to session data:", extra=extra)
raise ConflictError("Competing writes to session data:")

def _p_resolveConflict(self, old, committed, new):
Expand Down

0 comments on commit 9ccdc08

Please sign in to comment.