(icon, msg, color=Fore.RED, printf=print)
| 163 | @staticmethod |
| 164 | def function_message(msg: str, msg_obj: Optional[Message] = None, debug: bool = DEBUG, chunk_index: Optional[int] = None): |
| 165 | def print_function_message(icon, msg, color=Fore.RED, printf=print): |
| 166 | if STRIP_UI: |
| 167 | printf(f"⚡{icon} [function] {msg}") |
| 168 | else: |
| 169 | printf(f"{color}{Style.BRIGHT}⚡{icon} [function] {color}{msg}{Style.RESET_ALL}") |
| 170 | |
| 171 | def printd_function_message(icon, msg, color=Fore.RED): |
| 172 | return print_function_message(icon, msg, color, printf=(print if debug else printd)) |
nothing calls this directly
no outgoing calls
no test coverage detected