Bug 1518892 - fix signing server error. r=catlee
authorAki Sasaki <asasaki@mozilla.com>
Thu, 10 Jan 2019 22:20:19 +0000
changeset 8468 9de2fa1c4b0e
parent 8467 4c437eb11fd1
child 8469 8b59e64ffde0
push id6191
push userasasaki@mozilla.com
push dateMon, 11 Feb 2019 23:02:00 +0000
reviewerscatlee
bugs1518892
Bug 1518892 - fix signing server error. r=catlee When trying to restart the signing server as root, I hit the error `No handlers could be found for logger "__main__"`. Let's print the warning since the handlers haven't been set up yet. Differential Revision: https://phabricator.services.mozilla.com/D16080
release/signing/signing-server.py
--- a/release/signing/signing-server.py
+++ b/release/signing/signing-server.py
@@ -203,17 +203,17 @@ if __name__ == '__main__':
         sys.exit(0)
 
     if len(args) != 1:
         parser.error("Need just one server.ini file to read")
 
     # anything past here should only be done as user cltsign, remove
     # footgun
     if getpass.getuser() != 'cltsign':
-        log.error("Must run as user 'cltsign' for remaining actions")
+        print("Must run as user 'cltsign' for remaining actions")
         sys.exit(1)
 
     config = load_config(args[0])
     if not config:
         parser.error("Error reading config file: %s" % args[0])
 
     # Set up options if they haven't been overridden on the cmdline
     if options.logfile is None: