[2.2.14] - 2022-10-06
All checks were successful
ci/woodpecker/tag/tests Pipeline was successful
ci/woodpecker/tag/publish_release Pipeline was successful
ci/woodpecker/tag/publish_docker_arm64 Pipeline was successful
ci/woodpecker/tag/publish_docker_amd64 Pipeline was successful
ci/woodpecker/tag/publish_docker_manifest Pipeline was successful
ci/woodpecker/push/tests Pipeline was successful

Reviewed-on: #27
This commit is contained in:
Ivan Schaller 2022-10-06 22:41:48 +02:00
commit 58ef4e8d86
5 changed files with 15 additions and 6 deletions

View file

@ -9,6 +9,13 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
- Add support for more sites
## [2.2.14] - 2022-10-06
### Changed
- Changed logging format to ISO 8601
- Small logging corrections
## [2.2.13] - 2022-08-15
### Added

View file

@ -91,7 +91,7 @@ test_autoflake:
@python3 -m autoflake --check --remove-all-unused-imports -r -v mangadlp/
test_pylama:
@python3 -m pylama mangadlp/
@python3 -m pylama --options tox.ini mangadlp/
test_pylint:
@python3 -m pylint --fail-under 9 mangadlp/

View file

@ -1 +1 @@
__version__ = "2.1.13"
__version__ = "2.1.14"

View file

@ -269,7 +269,7 @@ class MangaDLP:
# check if chapter already exists
# check for folder, if file format is an empty string
if chapter_archive_path.exists():
log.warning(f"'{chapter_archive_path}' already exists. Skipping")
log.info(f"'{chapter_archive_path}' already exists. Skipping")
self.hook.run(
"chapter_pre", {"status": "skipped", "reason": "Existing"}, {}

View file

@ -1,11 +1,13 @@
import logging
DATE_FMT = "%Y-%m-%dT%H:%M:%S%z"
# prepare custom levels and default config of logger
def prepare_logger():
logging.basicConfig(
format="%(asctime)s | [%(levelname)s] [%(name)s]: %(message)s",
datefmt="%Y-%m-%d %H:%M:%S",
datefmt=DATE_FMT,
level=20,
handlers=[logging.StreamHandler()],
)
@ -21,13 +23,13 @@ def format_logger(verbosity: int):
if verbosity >= 20:
logging.basicConfig(
format="%(asctime)s | %(message)s",
datefmt="%Y-%m-%d %H:%M:%S",
datefmt=DATE_FMT,
force=True,
)
else:
logging.basicConfig(
format="%(asctime)s | [%(levelname)s] [%(name)s]: %(message)s",
datefmt="%Y-%m-%d %H:%M:%S",
datefmt=DATE_FMT,
force=True,
)