Browse files

changing exceptions to warnings in health check to prevent email spam

  • Loading branch information...
1 parent 89dcc60 commit ef846ea22ed360dbb6868a0b9d8161cfe0cdb9bb @chrisclark chrisclark committed Feb 7, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 health_check/backends/base.py
View
4 health_check/backends/base.py
@@ -45,10 +45,10 @@ def status(self):
try:
setattr(self, "_status", self.check_status())
except (ServiceUnavailable, ServiceReturnedUnexpectedResult, ) as e:
- logger.exception(e)
+ logger.warning(e)
setattr(self, "_status", e.code)
except Exception as e:
- logger.exception(e)
+ logger.warning(e)
setattr(self, "_status", 3)
return self._status

0 comments on commit ef846ea

Please sign in to comment.