Log caught exceptions in server installer at debug level
authorRob Crittenden <rcritten@redhat.com>
Fri, 17 Jul 2015 15:39:34 +0000 (11:39 -0400)
committerPatrick Uiterwijk <puiterwijk@redhat.com>
Mon, 27 Jul 2015 09:58:30 +0000 (11:58 +0200)
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>
ipsilon/install/ipsilon-server-install

index 5c1ef70..6c7c6dd 100755 (executable)
@@ -434,7 +434,8 @@ if __name__ == '__main__':
         else:
             install(fplugins, opts)
     except Exception, e:  # pylint: disable=broad-except
         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:
         if 'uninstall' in opts and opts['uninstall'] is True:
             logger.info('Uninstallation aborted.')
         else: