According to the documentation I can use log.Errorf(ctx, "whatever: %v", err)
Somehow that isn't working for me. I have ctx
declared as an appengine.Context
, as in the documentation example, but Go is complaining that I need to pass a net/context
instead!? I would assume that AppEngine would ONLY accept an AppEngine context, and nothing else.
AppEngine log expects context.Context
created by appengine.NewContext()
or it's derivatives.