Skip to content

Commit

Permalink
优化token刷新时的日志
Browse files Browse the repository at this point in the history
  • Loading branch information
lunzhiPenxil committed Nov 17, 2023
1 parent 3d67009 commit f4f09ab
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions OlivOS/qqGuildv2SDK.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,14 @@ def getTokenNow(bot_info:bot_info_T):
]
access_token = sdkTokenInfo[plugin_event_bot_hash][0]
try:
tmp_Proc = None
if OlivOS.bootAPI.gLoggerProc is not None:
OlivOS.bootAPI.gLoggerProc.log(
0,
tmp_Proc = OlivOS.bootAPI.gLoggerProc
if OlivOS.pluginAPI.gProc is not None:
tmp_Proc = OlivOS.pluginAPI.gProc
if tmp_Proc is not None:
tmp_Proc.log(
2,
OlivOS.L10NAPI.getTrans(
'OlivOS qqGuildv2SDK bot [{0}] refresh TOKEN [{1}]',
[plugin_event_bot_hash, access_token],
Expand Down

0 comments on commit f4f09ab

Please sign in to comment.