mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-05 17:02:32 -05:00
Add and use Red-Commons library (#5624)
* update RC dep * welp 100% tested * fix import * 120% tested * Call _early_init even earlier Not really in scope of this PR but the original was merged before I could share any feedback. * explicitly import getLogger Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
This commit is contained in:
@@ -35,8 +35,9 @@ import pkg_resources
|
||||
from fuzzywuzzy import fuzz, process
|
||||
from rich.progress import ProgressColumn
|
||||
from rich.progress_bar import ProgressBar
|
||||
from red_commons.logging import VERBOSE, TRACE
|
||||
|
||||
from redbot import VersionInfo, _log
|
||||
from redbot import VersionInfo
|
||||
from redbot.core import data_manager
|
||||
from redbot.core.utils.chat_formatting import box
|
||||
|
||||
@@ -366,7 +367,7 @@ def cli_level_to_log_level(level: int) -> int:
|
||||
elif level == 1:
|
||||
log_level = logging.DEBUG
|
||||
elif level == 2:
|
||||
log_level = _log.VERBOSE
|
||||
log_level = VERBOSE
|
||||
else:
|
||||
log_level = _log.TRACE
|
||||
log_level = TRACE
|
||||
return log_level
|
||||
|
||||
Reference in New Issue
Block a user