mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
CLI: add missing logging format to non-dev env
This commit is contained in:
parent
ad908f5d16
commit
c442c443df
1 changed files with 2 additions and 2 deletions
|
@ -106,10 +106,10 @@ args.override_parser_and_check_suspicious_options(cli_main)
|
|||
|
||||
def setup_logging() -> None:
|
||||
if getattr(sys, "dangerzone_dev", False):
|
||||
fmt = "%(message)s"
|
||||
fmt = "[%(levelname)-5s] %(message)s"
|
||||
logging.basicConfig(level=logging.DEBUG, format=fmt)
|
||||
else:
|
||||
logging.basicConfig(level=logging.INFO, format=fmt)
|
||||
logging.basicConfig(level=logging.INFO, format="%(message)s")
|
||||
|
||||
|
||||
def display_banner() -> None:
|
||||
|
|
Loading…
Reference in a new issue