Skip to content

Commit 34d8cfa

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

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
@@ -24,7 +24,7 @@
2424
TokenType,
2525
)
2626

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

2929

3030
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)