Skip to content

Commit

Permalink
Make messages of invalid builders to be warnings rather than errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Armen Zambrano G committed Jul 13, 2016
1 parent 4d90ec4 commit 49de5c0
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions mozci/mozci.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,12 +378,10 @@ def valid_builder(buildername, quiet=False):
return True
else:
if not quiet:
LOG.error("Buildername %s is *NOT* valid." % buildername)
LOG.info("Check the file we just created builders.txt for "
"a list of valid builders.")
with open(path_to_file('builders.txt'), "wb") as fd:
for b in sorted(builders):
fd.write(b + "\n")
LOG.warning("Buildername %s is *NOT* valid." % buildername)
LOG.info("Check {} for valid builders.".format(
'http://people.mozilla.org/~armenzg/permanent/all_builders.txt')
)

return False

Expand Down

0 comments on commit 49de5c0

Please sign in to comment.