Browse Source

#2225

update
tags/v1.22.6.2^2
chenyifan01 3 years ago
parent
commit
cb61264b97
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      modules/auth/wechat/auto_reply.go

+ 2
- 2
modules/auth/wechat/auto_reply.go View File

@@ -70,7 +70,7 @@ func GetAutomaticReply(msg string) *AutomaticResponseContent {
}

func loadAutomaticReplyFromDisk() ([]*AutomaticResponseContent, error) {
log.Debug("LoadAutomaticResponseMap from disk")
log.Info("LoadAutomaticResponseMap from disk")
repo, err := models.GetRepositoryByOwnerAndAlias(setting.UserNameOfAutoReply, setting.RepoNameOfAutoReply)
if err != nil {
log.Error("get AutomaticReply repo failed, error=%v", err)
@@ -92,7 +92,7 @@ func loadAutomaticReplyFromDisk() ([]*AutomaticResponseContent, error) {
func LoadAutomaticReplyFromCacheAndDisk() ([]*AutomaticResponseContent, error) {
v, success := WechatReplyCache.Get(WECHAT_REPLY_CACHE_KEY)
if success {
log.Debug("LoadAutomaticResponse from cache,value = %v", v)
log.Info("LoadAutomaticResponse from cache,value = %v", v)
if v == nil {
return nil, nil
}


Loading…
Cancel
Save