Skip to content

Commit

Permalink
Show checks.d syntax errors in info cmd.
Browse files Browse the repository at this point in the history
  • Loading branch information
clutchski committed Aug 14, 2013
1 parent 32bbeb5 commit 9ac8ad3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,9 @@ def load_check_directory(agentConfig):
continue
try:
check_module = imp.load_source('checksd_%s' % check_name, check)
except:
except Exception, e:
traceback_message = traceback.format_exc()
init_failed_checks[check_name] = {'error':e, 'traceback':traceback_message}
log.exception('Unable to import check module %s.py from checks.d' % check_name)
continue

Expand Down

0 comments on commit 9ac8ad3

Please sign in to comment.