From 49de5c01c591a2a96224fb77a6cd0fd34a84322b Mon Sep 17 00:00:00 2001 From: Armen Zambrano G Date: Wed, 13 Jul 2016 10:30:01 -0400 Subject: [PATCH] Make messages of invalid builders to be warnings rather than errors --- mozci/mozci.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/mozci/mozci.py b/mozci/mozci.py index 409b2a5..e38b50e 100644 --- a/mozci/mozci.py +++ b/mozci/mozci.py @@ -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