You've already forked woodpecker
mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-07-12 22:21:40 +02:00
Clean up logging (#3161)
- use `Err` method instead of format strings - use `Msg` if no format string is used
This commit is contained in:
@ -212,7 +212,7 @@ func (s *RPC) Init(c context.Context, id string, state rpc.State) error {
|
||||
Pipeline: *currentPipeline,
|
||||
})
|
||||
if err != nil {
|
||||
log.Error().Err(err).Msgf("could not marshal JSON")
|
||||
log.Error().Err(err).Msg("could not marshal JSON")
|
||||
return
|
||||
}
|
||||
s.pubsub.Publish(message)
|
||||
|
Reference in New Issue
Block a user