]> Frank Brehm's Git Trees - pixelpark/create-vmware-tpl.git/commitdiff
Cleaning up
authorFrank Brehm <frank.brehm@pixelpark.com>
Thu, 7 Feb 2019 10:39:41 +0000 (11:39 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Thu, 7 Feb 2019 10:39:41 +0000 (11:39 +0100)
lib/cr_vmware_tpl/app.py

index 2ec09fa1e8231447e160df0306ef5747b41df384..5b081d1252cdeccc2e39cbd7c2b99e48a7f5981c 100644 (file)
@@ -31,7 +31,7 @@ from .config import CrTplConfiguration
 
 from .handler import CrTplHandler
 
-__version__ = '1.0.1'
+__version__ = '1.0.2'
 LOG = logging.getLogger(__name__)
 
 
@@ -147,58 +147,6 @@ class CrTplApplication(BaseApplication):
 
         return res
 
-#    # -------------------------------------------------------------------------
-#    def init_logging(self):
-#        """
-#        Initialize the logger object.
-#        It creates a colored loghandler with all output to STDERR.
-#        Maybe overridden in descendant classes.
-#
-#        @return: None
-#        """
-#
-#        log_level = logging.INFO
-#        if self.verbose:
-#            log_level = logging.DEBUG
-#        elif self.quiet:
-#            log_level = logging.WARNING
-#
-#        root_logger = logging.getLogger()
-#        root_logger.setLevel(log_level)
-#
-#        # create formatter
-#        format_str = ''
-#        if self.verbose:
-#            format_str = '[%(asctime)s]: '
-#        format_str += self.appname + ': '
-#        if self.verbose:
-#            if self.verbose > 1:
-#                format_str += '%(name)s(%(lineno)d) %(funcName)s() '
-#            else:
-#                format_str += '%(name)s '
-#        format_str += '%(levelname)s - %(message)s'
-#        formatter = None
-#        if self.terminal_has_colors:
-#            formatter = ColoredFormatter(format_str)
-#        else:
-#            formatter = logging.Formatter(format_str)
-#
-#        # create log handler for console output
-#        lh_console = logging.StreamHandler(sys.stderr)
-#        lh_console.setLevel(log_level)
-#        lh_console.setFormatter(formatter)
-#
-#        root_logger.addHandler(lh_console)
-#
-#        if self.verbose < 3:
-#            paramiko_logger = logging.getLogger('paramiko.transport')
-#            if self.verbose < 1:
-#                paramiko_logger.setLevel(logging.WARNING)
-#            else:
-#                paramiko_logger.setLevel(logging.INFO)
-#
-#        return
-
     # -------------------------------------------------------------------------
     def post_init(self):
         """