File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -366,13 +366,13 @@ export const errorLogViewer = karin.command(/^#错误日志\s*(\d+)?$/, async (e
366366 }
367367} , { name : '错误日志查看器' , perm : 'admin' } )
368368
369- export const updateLogger = karin . command ( / ^ # 日 志 等 级 \s * ( ' t r a c e ' | ' d e b u g ' | ' i n f o ' | ' w a r n ' | ' e r r o r ' | ' f a t a l ' ) $ / i, async ( e ) => {
370- const match = e . msg . match ( / ^ # 日 志 等 级 \s * ( ' t r a c e ' | ' d e b u g ' | ' i n f o ' | ' w a r n ' | ' e r r o r ' | ' f a t a l ' ) $ / i) ?. [ 1 ] . toLowerCase ( )
369+ export const updateLogger = karin . command ( / ^ # 日 志 等 级 \s * ( t r a c e | d e b u g | i n f o | w a r n | e r r o r | f a t a l ) $ / i, async ( e ) => {
370+ const match = e . msg . match ( / ^ # 日 志 等 级 \s * ( t r a c e | d e b u g | i n f o | w a r n | e r r o r | f a t a l ) $ / i) ?. [ 1 ] . toLowerCase ( )
371371 if ( ! match ) {
372372 await e . reply ( '无效的日志等级' )
373373 return false
374374 }
375375 logger . level = match
376- await e . reply ( `已将日志等级更新为 ${ match . toUpperCase ( ) } ` )
376+ await e . reply ( `已将日志等级更新为 ${ match } ` )
377377 return true
378378} , { name : '更新日志等级' , perm : 'admin' } )
You can’t perform that action at this time.
0 commit comments