From 249003de0a951835c82ceb100c7fa8c60c9d2138 Mon Sep 17 00:00:00 2001 From: Evgeniy Alekseev Date: Wed, 27 Oct 2021 01:57:54 +0300 Subject: [PATCH] drop no-quiet option and change tree_create message error to warn --- src/ahriman/application/ahriman.py | 3 +-- src/ahriman/core/repository/properties.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ahriman/application/ahriman.py b/src/ahriman/application/ahriman.py index 53d7f127..480279ef 100644 --- a/src/ahriman/application/ahriman.py +++ b/src/ahriman/application/ahriman.py @@ -60,8 +60,7 @@ def _parser() -> argparse.ArgumentParser: parser.add_argument("-l", "--lock", help="lock file", type=Path, default=Path(tempfile.gettempdir()) / "ahriman.lock") parser.add_argument("--no-report", help="force disable reporting to web service", action="store_true") - parser.add_argument("-q", "--quiet", help="force disable any logging", action=argparse.BooleanOptionalAction, - default=False) # sometimes we would like to run not quiet even if it is disabled by default + parser.add_argument("-q", "--quiet", help="force disable any logging", action="store_true") parser.add_argument("--unsafe", help="allow to run ahriman as non-ahriman user. Some actions might be unavailable", action="store_true") parser.add_argument("-v", "--version", action="version", version=version.__version__) diff --git a/src/ahriman/core/repository/properties.py b/src/ahriman/core/repository/properties.py index be3226ec..25a9acca 100644 --- a/src/ahriman/core/repository/properties.py +++ b/src/ahriman/core/repository/properties.py @@ -64,7 +64,7 @@ class Properties: check_user(self.paths.root) self.paths.tree_create() except UnsafeRun: - self.logger.exception("root owner differs from the current user, skipping tree creation") + self.logger.warning("root owner differs from the current user, skipping tree creation") self.ignore_list = configuration.getlist("build", "ignore_packages", fallback=[]) self.pacman = Pacman(configuration)