We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ced4471 commit 3a989a8Copy full SHA for 3a989a8
htgettoken/__init__.py
@@ -84,21 +84,6 @@ def log(*args, **kwargs):
84
print(" ".join(map(str,args)), file=logfile, **kwargs)
85
86
87
-class HtgettokenHandler(logging.StreamHandler):
88
- """Custom logger handler for urllib3 to send output to our log function.
89
- """
90
- def __init__(self):
91
- logging.StreamHandler.__init__(self)
92
- def emit(self, record):
93
- log(self.format(record))
94
-
95
-root_logger = logging.getLogger()
96
-log_format = '%(name)s - %(levelname)s - %(message)s'
97
-log_handler = HtgettokenHandler()
98
-log_handler.setFormatter(logging.Formatter(log_format))
99
-root_logger.addHandler(log_handler)
100
101
102
def logerr(*args, **kwargs):
103
"""Always print to stderr.
104
"""
0 commit comments