Bug 1518892 - fix signing server error. r=catlee
authorAki Sasaki <asasaki@mozilla.com>
Thu, 10 Jan 2019 22:20:19 +0000
changeset 8468 9de2fa1c4b0e65f60d23fae79c848cf6ff86f0bc
parent 8467 4c437eb11fd1b2fde3e5f770f8fca626792d0b3e
child 8469 8b59e64ffde0d09d02729e49cc8a5b136fb8815a
push id6191
push userasasaki@mozilla.com
push dateMon, 11 Feb 2019 23:02:00 +0000
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
--- a/release/signing/signing-server.py
+++ b/release/signing/signing-server.py
@@ -203,17 +203,17 @@ if __name__ == '__main__':
     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")
     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: