Skip to content

Commit af4947d

Browse files
authored
move logger init to the end of the import block
1 parent db1891b commit af4947d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

meshtastic/__main__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
from types import ModuleType
1010

1111
import argparse
12-
import logging
13-
14-
logger = logging.getLogger(__name__)
1512

1613
argcomplete: Union[None, ModuleType] = None
1714
try:
@@ -66,6 +63,8 @@
6663
from meshtastic.protobuf import channel_pb2, config_pb2, portnums_pb2
6764
from meshtastic.version import get_active_version
6865

66+
logger = logging.getLogger(__name__)
67+
6968
def onReceive(packet, interface) -> None:
7069
"""Callback invoked when a packet arrives"""
7170
args = mt_config.args

0 commit comments

Comments
 (0)