fix: Use __name__ as logger name
This commit is contained in:
parent
a0362ea475
commit
9a2834e24e
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue