only log errors once

old-commit-hash: d0c079d810
This commit is contained in:
Greg Hogan 2021-07-15 14:34:55 -07:00
parent 7d1a7d9e75
commit 32d1fbed4b
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ class SwagLogger(logging.Logger):
evt.update(kwargs)
if 'error' in kwargs:
self.error(evt)
if 'debug' in kwargs:
elif 'debug' in kwargs:
self.debug(evt)
else:
self.info(evt)