From: Frank Brehm Date: Thu, 7 Feb 2019 10:39:41 +0000 (+0100) Subject: Cleaning up X-Git-Tag: 1.1.0^2~19 X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=272026ee0d67cc83ffaafb7f63ed26e38bfc87ce;p=pixelpark%2Fcreate-vmware-tpl.git Cleaning up --- diff --git a/lib/cr_vmware_tpl/app.py b/lib/cr_vmware_tpl/app.py index 2ec09fa..5b081d1 100644 --- a/lib/cr_vmware_tpl/app.py +++ b/lib/cr_vmware_tpl/app.py @@ -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): """