def watch(self, level=None, out=sys.stdout):
        try:
            self.logger.removeHandler(self.handlers[self.logger_name])
        except __HOLE__:
            pass
        handler = logging.StreamHandler(out)
        handler.setFormatter(self.formatter)
        self.handlers[self.logger_name] = handler
        self.logger.addHandler(handler)
        if level is None:
            level = logging.DEBUG if __debug__ else logging.INFO
        self.logger.setLevel(level)
dataset/ETHPy150Open nigelsmall/httpstream/httpstream/watch.py/Watcher.watch