Skip to content

Commit

Permalink
Fix the logging for jenkins check
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi Hakim authored and brettlangdon committed Mar 19, 2013
1 parent 81426dd commit 028dd72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions checks.d/jenkins.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def _get_build_metadata(self, dir_name):
build_metadata = os.path.join(dir_name, 'build.xml')

if not os.access(build_metadata, os.R_OK):
self.log.error("Can't read build file at %s" % (build_metadata))
self.log.debug("Can't read build file at %s" % (build_metadata))
raise Exception("Can't read build file at %s" % (build_metadata))
else:
tree = ElementTree()
Expand Down Expand Up @@ -110,7 +110,7 @@ def check(self, instance, create_event=True):
output['api_key'] = self.agentConfig['api_key']
output['host'] = get_hostname(self.agentConfig)
if create_event:
log.debug("Creating event for job: %s" % output['job_name'])
self.log.debug("Creating event for job: %s" % output['job_name'])
self.event(output)

@staticmethod
Expand Down

0 comments on commit 028dd72

Please sign in to comment.