]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cephadm: add error messages to log file
authorMichael Fritch <mfritch@suse.com>
Tue, 9 Feb 2021 18:12:37 +0000 (11:12 -0700)
committerMichael Fritch <mfritch@suse.com>
Tue, 9 Feb 2021 18:12:37 +0000 (11:12 -0700)
Signed-off-by: Michael Fritch <mfritch@suse.com>
src/cephadm/cephadm

index 1f3f92b4ebfaec0b5adae406bd83a66eb7842915..3149a870c734153ce06895259e76743e0eebd406 100755 (executable)
@@ -7674,7 +7674,7 @@ def main():
     except Error as e:
         if ctx.verbose:
             raise
-        sys.stderr.write('ERROR: %s\n' % e)
+        logger.error('ERROR: %s' % e)
         sys.exit(1)
     if not r:
         r = 0