I think Claude code is on drugs. i told it to use ...
# general
g
I think Claude code is on drugs. i told it to use
ctx.log
(golang) and now it did something like:
Copy code
if err != nil {
  ctx.Log.Error(fmt.Sprintf("applying config to worker %d: %s", i+1, err.Error()), nil)
  return nil, err
}
e
😕 That looks fine?
g
does it?? why would i need
fmt.Sprintf()
inside ? just to have the format?
e
Because ctx.Log.Error takes just a string, not a format string
g
ya. i guess thats fair.
would be nice if there were format string for
ctx.log.*