Skip to content

Commit 28c00f4

Browse files
committed
Update logging level to DEBUG for JLinkProgrammer and bmlab-scan step
1 parent 805454f commit 28c00f4

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,4 @@ jobs:
2424
- name: Test bmlab-scan
2525
run: |
2626
. .venv/bin/activate
27-
bmlab-scan --help
2827
bmlab-scan --log-level DEBUG

src/bmlab_toolkit/jlink_programmer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@
1212
from .programmer import Programmer, DBGMCU_IDCODE_ADDRESSES, DEVICE_ID_MAP, DEFAULT_MCU_MAP
1313

1414
# Configure default logging level for JLinkProgrammer
15-
logging.basicConfig(level=logging.WARNING, format='%(levelname)s - %(message)s')
15+
logging.basicConfig(level=logging.DEBUG, format='%(levelname)s - %(message)s')
1616

1717
# Suppress pylink logger to avoid communication timeout errors during disconnect
1818
pylink_logger = logging.getLogger('pylink')
19-
pylink_logger.setLevel(logging.WARNING)
19+
pylink_logger.setLevel(logging.DEBUG)
2020

2121

2222
class JLinkProgrammer(Programmer):
2323
"""JLink programmer implementation."""
2424

25-
def __init__(self, serial: Optional[int] = None, ip_addr: Optional[str] = None, log_level: int = logging.WARNING):
25+
def __init__(self, serial: Optional[int] = None, ip_addr: Optional[str] = None, log_level: int = logging.DEBUG):
2626
"""
2727
Initialize JLink programmer.
2828

0 commit comments

Comments
 (0)