From a8de56da53e732b4925c279c8fdc49deca8e5e4b Mon Sep 17 00:00:00 2001 From: Stephan Druskat Date: Wed, 11 Jan 2023 13:22:29 +0100 Subject: [PATCH 1/2] Remove hint logger from configuration --- pyproject.toml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 089ab071..702eb5df 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -109,12 +109,6 @@ level = "DEBUG" filename = "hermes-audit.md" mode = "w" -[tool.hermes.logging.handlers.hintfile] -class = "logging.FileHandler" -formatter = "plain" -level = "DEBUG" -filename = "quickfix.sh" - [tool.hermes.logging.loggers.cli] level = "DEBUG" handlers = ["terminal"] @@ -127,11 +121,6 @@ handlers = ["terminal", "logfile"] level = "DEBUG" handlers = ["terminal", "auditfile"] -[tool.hermes.logging.loggers.audit.hint] -level = "DEBUG" -propagate = false -handlers = ["terminal", "hintfile"] - [tool.taskipy.tasks] docs-build = "poetry run sphinx-build -M html docs/source docs/build -W" docs-clean = "poetry run sphinx-build -M clean docs/source docs/build" From 0aa1609e49fa2539ba469b48dd1fda13f5e5795f Mon Sep 17 00:00:00 2001 From: Stephan Druskat Date: Wed, 11 Jan 2023 13:22:45 +0100 Subject: [PATCH 2/2] Remove hint logging from git harvester --- src/hermes/commands/harvest/git.py | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/src/hermes/commands/harvest/git.py b/src/hermes/commands/harvest/git.py index 94c3a9f2..864105d7 100644 --- a/src/hermes/commands/harvest/git.py +++ b/src/hermes/commands/harvest/git.py @@ -234,32 +234,6 @@ def _audit_authors(authors, audit_log: logging.Logger): audit_log.info('') audit_log.info('``` .mailmap') - # Provide some example configuration for the hint log - hint_log = audit_log.parent.getChild('hints') - hint_log.debug("# '.maillog' to resolve git ambiguities.") - - unmapped_email = [a for a in unmapped_authors if a.email[1:]] - if unmapped_email: - hint_log.debug('# Mapping of email addresses only. Format (one pair per line):') - hint_log.debug('# ') - - for author in unmapped_email: - for email in author.email[1:]: - hint_log.info("<%s> <%s>", str(author.email[0]), str(email)) - hint_log.debug('') - - unmapped_name = [a for a in unmapped_authors if a.name[1:]] - if unmapped_name: - hint_log.debug('# Mapping of user names. Format (one pair per line):') - hint_log.debug('# Real Name nickname') - hint_log.debug('# Real Name Name, Real') - - for author in [a for a in unmapped_authors if a.name[1:]]: - for name in author.name[1:]: - hint_log.info('%s <%s> %s', str(author.name[0]), str(author.email[0]), str(name)) - - hint_log.info('') - audit_log.info('```')