mirror of
https://github.com/TriM-Organization/Musicreater.git
synced 2025-09-06 20:36:23 +00:00
更新文案
This commit is contained in:
@ -52,7 +52,7 @@ def log(info:str = '',level : str = 'INFO', isPrinted:bool = True):
|
||||
'''将信息连同当前时间载入日志
|
||||
:param info : str
|
||||
日志信息
|
||||
:param level : str['INFO','WARRING','ERROR','CRASH']
|
||||
:param level : str['INFO','WARN','ERROR','CRASH']
|
||||
或 int[ 1, 2, 3, 4 ]
|
||||
信息等级
|
||||
:param isPrinted : bool
|
||||
@ -62,7 +62,7 @@ def log(info:str = '',level : str = 'INFO', isPrinted:bool = True):
|
||||
表示是否完成任务'''
|
||||
|
||||
if type(level) == type(1):
|
||||
level = ['INFO','WARRING','ERROR','CRASH'][level-1]
|
||||
level = ['INFO','WARN','ERROR','CRASH'][level-1]
|
||||
|
||||
try:
|
||||
|
||||
|
Reference in New Issue
Block a user