From 998fd968afcfb512f20e93cfed55b4fe9d5333fa Mon Sep 17 00:00:00 2001 From: Haibao Tang Date: Thu, 23 Nov 2023 20:52:56 -0800 Subject: [PATCH] Send to stderr instead --- jcvi/apps/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jcvi/apps/base.py b/jcvi/apps/base.py index 306a434e..b1734073 100644 --- a/jcvi/apps/base.py +++ b/jcvi/apps/base.py @@ -59,7 +59,7 @@ def get_logger(name: str, level: int = logging.DEBUG): logger = logging.getLogger(name) if logger.hasHandlers(): logger.handlers.clear() - logger.addHandler(RichHandler()) + logger.addHandler(RichHandler(console=Console(stderr=True))) logger.propagate = False logger.setLevel(level) return logger