When I called log.Infof() from google.golang.org/appengine/log, Logging output "/logservice.Flush is not registered"

huangapple go评论92阅读模式
英文:

When I called log.Infof() from google.golang.org/appengine/log, Logging output "/logservice.Flush is not registered"

问题

当我尝试使用google.golang.org/appengine/log输出日志时,我在日志中遇到了以下错误。

internal.flushLog: Flush RPC: Call error 1: call /logservice.Flush is not registered

有人知道如何解决这个问题吗?

GAE/Go 1.16

英文:

When I tried to output the log using google.golang.org/appengine/log, I got the following error in logging.

internal.flushLog: Flush RPC: Call error 1: call /logservice.Flush is not registered

Anyone know how to resolve this?

GAE/Go 1.16

答案1

得分: 2

你需要在 Go 1.12 或更高版本中使用 google.golang.org/appengine/v2

请参阅这里

英文:

You have to use google.golang.org/appengine/v2 for Go 1.12 or later.

See here.

huangapple
  • 本文由 发表于 2022年12月8日 14:34:03
  • 转载请务必保留本文链接:https://go.coder-hub.com/74726371.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定