Fix log colors so it isn't black on black in macOS

This commit is contained in:
Micah Lee 2021-05-02 15:49:43 -07:00
parent 21b4ae06f0
commit 6325662b9c
No known key found for this signature in database
GPG key ID: 403C2657CD994F73

View file

@ -291,7 +291,7 @@ class Common:
"""
if self.verbose:
timestamp = time.strftime("%b %d %Y %X")
final_msg = f"{Fore.BLACK + Style.BRIGHT}[{timestamp}]{Style.RESET_ALL} {Fore.WHITE + Style.DIM}{module}.{func}{Style.RESET_ALL}"
final_msg = f"{Fore.LIGHTBLACK_EX + Style.DIM}[{timestamp}]{Style.RESET_ALL} {Fore.WHITE + Style.DIM}{module}.{func}{Style.RESET_ALL}"
if msg:
final_msg = (
f"{final_msg}{Fore.WHITE + Style.DIM}: {msg}{Style.RESET_ALL}"