Skip to content

Commit 7c6651b

Browse files
authored
pkg/apiserver: remove incorrect log.Error (#3672)
1 parent 40b8cfe commit 7c6651b

File tree

1 file changed

+0
-2
lines changed
  • pkg/apiserver/middlewares/v1

1 file changed

+0
-2
lines changed

pkg/apiserver/middlewares/v1/jwt.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,6 @@ func (j *JWT) Authenticator(c *gin.Context) (any, error) {
238238

239239
if err := j.DbClient.UpdateMachineVersion(ctx, useragent[1], auth.clientMachine.ID); err != nil {
240240
log.Errorf("unable to update machine '%s' version '%s': %s", auth.clientMachine.MachineId, useragent[1], err)
241-
log.Errorf("bad user agent from : %s", clientIP)
242-
243241
return nil, jwt.ErrFailedAuthentication
244242
}
245243

0 commit comments

Comments
 (0)