method to globally set logging to output nicely to the console

This will make all of the direct calls to logging level functions output
in a format that looks appropriate for the console. Previously, the default
output looked like it should be written to a log file.
This commit is contained in:
Hans-Christoph Steiner 2024-02-27 16:39:53 +01:00 committed by Michael Pöhn
parent 091fe9b260
commit 76d9eddb3a
5 changed files with 42 additions and 4 deletions

View file

@ -54,6 +54,8 @@ def main():
help=_("Install all signed applications available"))
options = parser.parse_args()
common.set_console_logging(options.verbose)
if not options.appid and not options.all:
parser.error(_("option %s: If you really want to install all the signed apps, use --all") % "all")