htmlcmp 1.0.17__tar.gz → 1.0.18__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: htmlcmp
3
- Version: 1.0.17
3
+ Version: 1.0.18
4
4
  Summary: Compare HTML files by rendered output
5
5
  Author: Andreas Stefl
6
6
  Maintainer-email: Andreas Stefl <stefl.andreas@gmail.com>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "htmlcmp"
3
- version = "1.0.17"
3
+ version = "1.0.18"
4
4
  description = "Compare HTML files by rendered output"
5
5
  classifiers = []
6
6
  authors = [
@@ -40,7 +40,7 @@ class Observer:
40
40
  event_type = event.event_type
41
41
  src_path = Path(event.src_path)
42
42
 
43
- logger.verbose(f"Watchdog event: {event_type} {src_path}")
43
+ logger.debug(f"Watchdog event: {event_type} {src_path}")
44
44
 
45
45
  if event_type not in ["moved", "deleted", "created", "modified"]:
46
46
  return
@@ -64,7 +64,7 @@ class Observer:
64
64
  self._observer.start()
65
65
 
66
66
  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}")
68
68
 
69
69
  if not isinstance(a, Path) or not isinstance(b, Path):
70
70
  raise TypeError("Paths must be of type Path")
@@ -350,13 +350,13 @@ def file(variant: str, path: str):
350
350
 
351
351
  def setup_logging(verbosity: int):
352
352
  if verbosity >= 3:
353
- level = logging.VERBOSE
354
- elif verbosity == 2:
355
353
  level = logging.DEBUG
356
- elif verbosity == 1:
354
+ elif verbosity == 2:
357
355
  level = logging.INFO
358
- else:
356
+ elif verbosity == 1:
359
357
  level = logging.WARNING
358
+ else:
359
+ level = logging.ERROR
360
360
 
361
361
  formatter = logging.Formatter(
362
362
  fmt="%(asctime)s [%(levelname)s] %(name)s: %(message)s",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: htmlcmp
3
- Version: 1.0.17
3
+ Version: 1.0.18
4
4
  Summary: Compare HTML files by rendered output
5
5
  Author: Andreas Stefl
6
6
  Maintainer-email: Andreas Stefl <stefl.andreas@gmail.com>
File without changes
File without changes
File without changes