From ca5c59ba6b8a85259da1f5aa11bb61a867b25913 Mon Sep 17 00:00:00 2001 From: Kenneth Yang <82800265+kjy5@users.noreply.github.com> Date: Wed, 24 Jul 2024 14:48:56 -0700 Subject: [PATCH] 370 restrict info logging to just ephys link (#372) * Set logger to default, only enable info for ephys link * Version bump * Fixed linting error --- src/ephys_link/__about__.py | 2 +- src/ephys_link/util/console.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ephys_link/__about__.py b/src/ephys_link/__about__.py index cb3c238..0016201 100644 --- a/src/ephys_link/__about__.py +++ b/src/ephys_link/__about__.py @@ -1 +1 @@ -__version__ = "2.0.0b2" +__version__ = "2.0.0b3" diff --git a/src/ephys_link/util/console.py b/src/ephys_link/util/console.py index 6c2c450..b259c48 100644 --- a/src/ephys_link/util/console.py +++ b/src/ephys_link/util/console.py @@ -25,12 +25,12 @@ def __init__(self, *, enable_debug: bool) -> None: # Config logger. basicConfig( - level=DEBUG if enable_debug else INFO, format="%(message)s", datefmt="[%I:%M:%S %p]", handlers=[RichHandler(rich_tracebacks=True)], ) self._log = getLogger("rich") + self._log.setLevel(DEBUG if enable_debug else INFO) # Install Rich traceback. install()