🔊 change log level add level config

This commit is contained in:
yanyongyu
2021-04-19 21:15:10 +08:00
parent c24d0def09
commit 79d3bbcdfe
9 changed files with 64 additions and 12 deletions

View File

@ -946,7 +946,7 @@ def _load_plugin(manager: PluginManager, plugin_name: str) -> Optional[Plugin]:
plugin = Plugin(plugin_name, module)
plugins[plugin_name] = plugin
logger.opt(
colors=True).info(f'Succeeded to import "<y>{plugin_name}</y>"')
colors=True).success(f'Succeeded to import "<y>{plugin_name}</y>"')
return plugin
except Exception as e:
logger.opt(colors=True, exception=e).error(