github.com/chanxuehong/wechat@v0.0.0-20230222024006-36f0325263cd/internal/debug/api/retry/debug.go (about)

     1  //go:build wechat_debug
     2  // +build wechat_debug
     3  
     4  package retry
     5  
     6  import (
     7  	"log"
     8  )
     9  
    10  func DebugPrintError(errcode int64, errmsg string, token string) {
    11  	const format = "[WECHAT_DEBUG] [API] [RETRY] errcode: %d, errmsg: %s\n" +
    12  		"current token: %s\n"
    13  	log.Printf(format, errcode, errmsg, token)
    14  }
    15  
    16  func DebugPrintNewToken(token string) {
    17  	log.Println("[WECHAT_DEBUG] [API] [RETRY] new token:", token)
    18  }
    19  
    20  func DebugPrintFallthrough(token string) {
    21  	log.Println("[WECHAT_DEBUG] [API] [RETRY] fallthrough, current token:", token)
    22  }