WIP: cálculo de impacto ambiental #59

Draft
pedro wants to merge 91 commits from feature/f31-device-enviromental-impact into main
Showing only changes of commit d7ff3c2798 - Show all commits

View file

@ -33,5 +33,8 @@ class CustomFormatter(logging.Formatter):
return super().format(record)
def highlight_args(self, message, args, color):
try:
highlighted_args = tuple(f"{color}{arg}{RESET}" for arg in args)
return message % highlighted_args
except (TypeError, ValueError):
return f"{color}{message}{RESET}"