Skip to content

Commit

Permalink
gguf-py/gguf/*.py: use __name__ as logger name
Browse files Browse the repository at this point in the history
Since they will be imported and not run directly.
  • Loading branch information
mofosyne committed Apr 18, 2024
1 parent bc9a3ae commit 34d8cfa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gguf-py/gguf/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from enum import Enum, IntEnum, auto
from typing import Any

logger = logging.getLogger("constants")
logger = logging.getLogger(__name__)

#
# constants
Expand Down
2 changes: 1 addition & 1 deletion gguf-py/gguf/gguf_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
TokenType,
)

logger = logging.getLogger("gguf-writer")
logger = logging.getLogger(__name__)


class WriterState(Enum):
Expand Down
2 changes: 1 addition & 1 deletion gguf-py/gguf/vocab.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from .gguf_writer import GGUFWriter

logger = logging.getLogger("vocab")
logger = logging.getLogger(__name__)


class SpecialVocab:
Expand Down

0 comments on commit 34d8cfa

Please sign in to comment.