feat: 为四种现有轮询 Handler 添加 verbose log 输出
realname: verbose log 移入 gateway 块内,避免 gateway=nil 时输出零值 carddata: 添加 && h.gateway != nil 门卫,确保仅 gateway 查询成功时输出 package: verbose log 在 freshCard 加载后、EvaluateAndAct 之前输出 protect: 引入 actionTaken 变量,字段名 network_status → network_status_at_check,新增 action_taken Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -67,6 +67,13 @@ func (h *PollingPackageHandler) Handle(ctx context.Context, t *asynq.Task) error
|
||||
zap.Uint("card_id", cardID),
|
||||
zap.Int("network_status", freshCard.NetworkStatus),
|
||||
zap.String("stop_reason", freshCard.StopReason))
|
||||
if h.base.verboseLog {
|
||||
h.base.logger.Info("套餐检查详情",
|
||||
zap.Uint("card_id", cardID),
|
||||
zap.String("iccid", freshCard.ICCID),
|
||||
zap.Int("network_status", freshCard.NetworkStatus),
|
||||
zap.String("stop_reason", freshCard.StopReason))
|
||||
}
|
||||
if evalErr := h.stopResumeSvc.EvaluateAndAct(ctx, freshCard); evalErr != nil {
|
||||
h.base.logger.Warn("套餐检查后停复机评估失败",
|
||||
zap.Uint("card_id", cardID), zap.Error(evalErr))
|
||||
|
||||
Reference in New Issue
Block a user