Skip to content

Commit

Permalink
log
Browse files Browse the repository at this point in the history
  • Loading branch information
hariso committed Nov 4, 2024
1 parent 90e1733 commit a47a9ee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/connector/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ func (s *Service) Update(ctx context.Context, id string, plugin string, data Con
return nil, err
}

if conn.Plugin != plugin {
s.logger.Warn(ctx).Msgf("connector pluging changing from %v to %v, this may lead to unexpected behavior and configuration issues.")

Check failure on line 201 in pkg/connector/service.go

View workflow job for this annotation

GitHub Actions / test

(*github.com/rs/zerolog.Event).Msgf format %v reads arg #1, but call has 0 args

Check failure on line 201 in pkg/connector/service.go

View workflow job for this annotation

GitHub Actions / golangci-lint

printf: (*github.com/rs/zerolog.Event).Msgf format %v reads arg #1, but call has 0 args (govet)
}
conn.Plugin = plugin
conn.Config = data
conn.UpdatedAt = time.Now().UTC()
Expand Down

0 comments on commit a47a9ee

Please sign in to comment.