drop no-quiet option and change tree_create message error to warn

This commit is contained in:
Evgenii Alekseev 2021-10-27 01:57:54 +03:00
parent ec23e3f912
commit ae99fe4535
2 changed files with 2 additions and 3 deletions

View File

@ -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__)

View File

@ -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)