Skip to content

Commit e999b4d

Browse files
committed
gguf-py/gguf/*.py: use __name__ as logger name
Since they will be imported and not run directly.
1 parent 8c132f4 commit e999b4d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

gguf-py/gguf/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from enum import Enum, IntEnum, auto
55
from typing import Any
66

7-
logger = logging.getLogger("constants")
7+
logger = logging.getLogger(__name__)
88

99
#
1010
# constants

gguf-py/gguf/gguf_writer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
TokenType,
2626
)
2727

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

3030

3131
class WriterState(Enum):

gguf-py/gguf/vocab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
from .gguf_writer import GGUFWriter
1010

11-
logger = logging.getLogger("vocab")
11+
logger = logging.getLogger(__name__)
1212

1313

1414
class SpecialVocab:

0 commit comments

Comments
 (0)