Skip to content

Commit

Permalink
Issue #19: Add additional exception handling to Analyzer
Browse files Browse the repository at this point in the history
Added traceback if issue writing of the anomalies.json file

Modified:
skyline/analyzer/analyzer.py
  • Loading branch information
earthgecko committed Aug 18, 2016
1 parent e0350b6 commit 75e124e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions skyline/analyzer/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -852,6 +852,7 @@ def smtp_trigger_alert(alert, metric):
anomalous_metrics.sort(key=operator.itemgetter(1))
fh.write('handle_data(%s)' % anomalous_metrics)
except:
logger.info(traceback.format_exc())
logger.error(
'error :: failed to write anomalies to %s' %
str(filename))
Expand Down

0 comments on commit 75e124e

Please sign in to comment.