Skip to content

Commit 12903e1

Browse files
committed
Fix logging of strings containing <> and cleanup logging
Signed-off-by: Jos Verlinde <Jos_Verlinde@hotmail.com>
1 parent 84d3150 commit 12903e1

3 files changed

Lines changed: 7 additions & 292 deletions

File tree

mpflash/db/core.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414

1515
TRACE = False
1616
connect_str = f"sqlite:///{config.db_path.as_posix()}"
17-
log.debug(f"Connecting to database at {connect_str}")
17+
if TRACE:
18+
log.debug(f"Connecting to database at {connect_str}")
1819
engine = create_engine(connect_str, echo=TRACE)
1920
Session = sessionmaker(bind=engine)
2021

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
[project]
77
name = "mpflash"
8-
version = "1.26.2"
8+
version = "1.26.3"
99
description = "Flash and download tool for MicroPython firmwares"
1010
authors = [
1111
{name = "Jos Verlinde", email = "jos_verlinde@hotmail.com"}
@@ -75,9 +75,9 @@ test = [
7575
"fasteners>=0.19",
7676
"mock>=4.0.3,<6.0.0",
7777
]
78-
perf = [
79-
"scalene>=1.5.51",
80-
]
78+
# perf = [
79+
# "scalene>=1.5.51",
80+
# ]
8181

8282
[project.scripts]
8383
mpflash = "mpflash.cli_main:mpflash"

0 commit comments

Comments
 (0)