from ..xlate import XLATOR
-__version__ = '0.9.7'
+__version__ = '0.9.8'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
Public available method to execute some actions after parsing
the command line parameters.
"""
+ # -------------------------------------------------------------------------
+ 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
+ """
+
+ super(PpPDNSApplication, self).init_logging()
+
+ if self.verbose < 3:
+ urllib3_logger = logging.getLogger('urllib3.connectionpool')
+ if self.verbose < 1:
+ urllib3_logger.setLevel(logging.WARNING)
+ else:
+ urllib3_logger.setLevel(logging.INFO)
+
+ chardet_logger = logging.getLogger('chardet.charsetprober')
+ if self.verbose < 1:
+ chardet_logger.setLevel(logging.WARNING)
+ else:
+ chardet_logger.setLevel(logging.INFO)
+
+ return
# -------------------------------------------------------------------------
def _check_path_config(self, section, section_name, key, class_prop, absolute=True, desc=None):