From f2f2e6f1431e3e7f693023eebbb0690ebb33c87d Mon Sep 17 00:00:00 2001 From: deeplow Date: Thu, 18 Aug 2022 12:20:26 +0100 Subject: [PATCH] in cli-mode banner should be printed instead Was calling color spillover to the adjacent text if the banner was logged instead of printed. Since this is the CLI version, it could make sense to have this printed. --- dangerzone/global_common.py | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/dangerzone/global_common.py b/dangerzone/global_common.py index a7d58cb..ae8ab0c 100644 --- a/dangerzone/global_common.py +++ b/dangerzone/global_common.py @@ -227,8 +227,8 @@ class GlobalCommon(object): ╰──────────────────────────╯ """ - log.info(Back.BLACK + Fore.YELLOW + Style.DIM + "╭──────────────────────────╮") - log.info( + print(Back.BLACK + Fore.YELLOW + Style.DIM + "╭──────────────────────────╮") + print( Back.BLACK + Fore.YELLOW + Style.DIM @@ -240,7 +240,7 @@ class GlobalCommon(object): + Style.DIM + "│" ) - log.info( + print( Back.BLACK + Fore.YELLOW + Style.DIM @@ -252,7 +252,7 @@ class GlobalCommon(object): + Style.DIM + "│" ) - log.info( + print( Back.BLACK + Fore.YELLOW + Style.DIM @@ -264,7 +264,7 @@ class GlobalCommon(object): + Style.DIM + "│" ) - log.info( + print( Back.BLACK + Fore.YELLOW + Style.DIM @@ -276,7 +276,7 @@ class GlobalCommon(object): + Style.DIM + "│" ) - log.info( + print( Back.BLACK + Fore.YELLOW + Style.DIM @@ -288,7 +288,7 @@ class GlobalCommon(object): + Style.DIM + "│" ) - log.info( + print( Back.BLACK + Fore.YELLOW + Style.DIM @@ -300,7 +300,7 @@ class GlobalCommon(object): + Style.DIM + "│" ) - log.info( + print( Back.BLACK + Fore.YELLOW + Style.DIM @@ -312,7 +312,7 @@ class GlobalCommon(object): + Style.DIM + "│" ) - log.info( + print( Back.BLACK + Fore.YELLOW + Style.DIM @@ -324,7 +324,7 @@ class GlobalCommon(object): + Style.DIM + "│" ) - log.info( + print( Back.BLACK + Fore.YELLOW + Style.DIM @@ -336,7 +336,7 @@ class GlobalCommon(object): + Style.DIM + "│" ) - log.info( + print( Back.BLACK + Fore.YELLOW + Style.DIM @@ -348,12 +348,12 @@ class GlobalCommon(object): + Style.DIM + "│" ) - log.info(Back.BLACK + Fore.YELLOW + Style.DIM + "│ │") + print(Back.BLACK + Fore.YELLOW + Style.DIM + "│ │") left_spaces = (15 - len(self.version) - 1) // 2 right_spaces = left_spaces if left_spaces + len(self.version) + 1 + right_spaces < 15: right_spaces += 1 - log.info( + print( Back.BLACK + Fore.YELLOW + Style.DIM @@ -367,7 +367,7 @@ class GlobalCommon(object): + Style.DIM + "│" ) - log.info( + print( Back.BLACK + Fore.YELLOW + Style.DIM @@ -380,7 +380,7 @@ class GlobalCommon(object): + Style.DIM + "│" ) - log.info(Back.BLACK + Fore.YELLOW + Style.DIM + "╰──────────────────────────╯") + print(Back.BLACK + Fore.YELLOW + Style.DIM + "╰──────────────────────────╯") def get_container_runtime(self): if platform.system() == "Linux":