Skip to content

Commit

Permalink
add some colors to the log
Browse files Browse the repository at this point in the history
  • Loading branch information
fdev31 committed Jan 25, 2024
1 parent b33ab17 commit 94568fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyprland/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ async def load_config(self, init=True):

async def _run_plugin_handler(self, plugin, full_name, params):
"Runs a single handler on a plugin"
self.log.debug("%s.%s%s", plugin.name, full_name, params)
color = 33 if full_name.startswith("run_") else 30
self.log.debug(f"\033[{color};1m%s.%s%s\033[0m", plugin.name, full_name, params)
try:
await getattr(plugin, full_name)(*params)
except AssertionError as e:
Expand Down

0 comments on commit 94568fe

Please sign in to comment.