From 9a2834e24e69069a193bb2bef296248ec011436c Mon Sep 17 00:00:00 2001 From: teleprint-me <77757836+teleprint-me@users.noreply.github.com> Date: Sun, 19 May 2024 22:39:30 -0400 Subject: [PATCH] fix: Use __name__ as logger name --- gguf-py/gguf/huggingface_hub.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gguf-py/gguf/huggingface_hub.py b/gguf-py/gguf/huggingface_hub.py index bbb83da21..fe41592c9 100644 --- a/gguf-py/gguf/huggingface_hub.py +++ b/gguf-py/gguf/huggingface_hub.py @@ -65,7 +65,7 @@ class HFHubRequest: # Set the logger if logger is None: logging.basicConfig(level=logging.DEBUG) - logger = logging.getLogger("huggingface-hub") + logger = logging.getLogger(__name__) self.logger = logger # Persist across requests @@ -122,7 +122,7 @@ class HFHubBase: # Set the logger if logger is None: logging.basicConfig(level=logging.DEBUG) - logger = logging.getLogger("hf-tok-req") + logger = logging.getLogger(__name__) self.logger = logger self._hub = HFHubRequest(auth_token, logger)