gguf-py/gguf/*.py: use __name__ as logger name
Since they will be imported and not run directly.
This commit is contained in:
parent
b0b51e7874
commit
fe1d7f605d
3 changed files with 3 additions and 3 deletions
|
@ -4,7 +4,7 @@ import logging
|
|||
from enum import Enum, IntEnum, auto
|
||||
from typing import Any
|
||||
|
||||
logger = logging.getLogger("constants")
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
#
|
||||
# constants
|
||||
|
|
|
@ -25,7 +25,7 @@ from .constants import (
|
|||
TokenType,
|
||||
)
|
||||
|
||||
logger = logging.getLogger("gguf-writer")
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class WriterState(Enum):
|
||||
|
|
|
@ -8,7 +8,7 @@ from typing import Any, Callable
|
|||
|
||||
from .gguf_writer import GGUFWriter
|
||||
|
||||
logger = logging.getLogger("vocab")
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class SpecialVocab:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue