Skip to content

Commit 6f68e11

Browse files
committed
fix logging
bump version to 1.0.18
1 parent ea1b10f commit 6f68e11

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "htmlcmp"
3-
version = "1.0.17"
3+
version = "1.0.18"
44
description = "Compare HTML files by rendered output"
55
classifiers = []
66
authors = [

src/htmlcmp/compare_output_server.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def dispatch(self, event):
4040
event_type = event.event_type
4141
src_path = Path(event.src_path)
4242

43-
logger.verbose(f"Watchdog event: {event_type} {src_path}")
43+
logger.debug(f"Watchdog event: {event_type} {src_path}")
4444

4545
if event_type not in ["moved", "deleted", "created", "modified"]:
4646
return
@@ -64,7 +64,7 @@ def start(self):
6464
self._observer.start()
6565

6666
def init_compare(a: Path, b: Path):
67-
logger.verbose(f"Initial compare: {a} vs {b}")
67+
logger.debug(f"Initial compare: {a} vs {b}")
6868

6969
if not isinstance(a, Path) or not isinstance(b, Path):
7070
raise TypeError("Paths must be of type Path")
@@ -350,13 +350,13 @@ def file(variant: str, path: str):
350350

351351
def setup_logging(verbosity: int):
352352
if verbosity >= 3:
353-
level = logging.VERBOSE
354-
elif verbosity == 2:
355353
level = logging.DEBUG
356-
elif verbosity == 1:
354+
elif verbosity == 2:
357355
level = logging.INFO
358-
else:
356+
elif verbosity == 1:
359357
level = logging.WARNING
358+
else:
359+
level = logging.ERROR
360360

361361
formatter = logging.Formatter(
362362
fmt="%(asctime)s [%(levelname)s] %(name)s: %(message)s",

0 commit comments

Comments
 (0)