diff options
author | Rob Crittenden <rcritten@redhat.com> | 2015-07-17 11:39:34 -0400 |
---|---|---|
committer | Patrick Uiterwijk <puiterwijk@redhat.com> | 2015-07-27 11:58:30 +0200 |
commit | db9da225bce11ddeef1b5a2d511f18e17a808f15 (patch) | |
tree | 010041e6d7eeedfb025f8d58794381104ca7673a | |
parent | 63c1a25a0a0fb3bcf8ea054c49ce88ffc81599cc (diff) | |
download | ipsilon-db9da225bce11ddeef1b5a2d511f18e17a808f15.tar.gz ipsilon-db9da225bce11ddeef1b5a2d511f18e17a808f15.tar.xz ipsilon-db9da225bce11ddeef1b5a2d511f18e17a808f15.zip |
Log caught exceptions in server installer at debug level
exception() is a helper that logs a traceback at the ERROR
level. Since the stdout logs at INFO the traceback was going to
both the log file and stdout. We really only want it in the debug
log.
https://fedorahosted.org/ipsilon/ticket/143
Signed-off-by: Rob Crittenden <rcritten@redhat.com>
Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
-rwxr-xr-x | ipsilon/install/ipsilon-server-install | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ipsilon/install/ipsilon-server-install b/ipsilon/install/ipsilon-server-install index 5c1ef70..6c7c6dd 100755 --- a/ipsilon/install/ipsilon-server-install +++ b/ipsilon/install/ipsilon-server-install @@ -434,7 +434,8 @@ if __name__ == '__main__': else: install(fplugins, opts) except Exception, e: # pylint: disable=broad-except - logger.exception(e) + logger.debug(e, exc_info=1) + if 'uninstall' in opts and opts['uninstall'] is True: logger.info('Uninstallation aborted.') else: |