Skip to content

Conversation

@hakansa
Copy link
Contributor

@hakansa hakansa commented Mar 27, 2025

Describe your changes

adds logging interceptor to gRPC requests.

(keys redacted in the logs below)

2025-03-27T18:52:01+08:00 DEBUG client/grpc/logger/logger.go:28: gRPC request initiated: method=/management.ManagementService/GetServerKey, request={}
2025-03-27T18:52:01+08:00 DEBUG client/grpc/logger/logger.go:46: gRPC request succeeded: method=/management.ManagementService/GetServerKey, duration=205.779ms, response={"key":"BqHpsTib...","expiresAt":"1970-01-01T00:00:01.756579888Z"}
2025-03-27T18:52:01+08:00 DEBUG client/grpc/logger/logger.go:28: gRPC request initiated: method=/management.ManagementService/Login, request={"wgPubKey":"cAAioT+....","body":"fW+PnoG...."}
2025-03-27T18:52:02+08:00 DEBUG client/grpc/logger/logger.go:46: gRPC request succeeded: method=/management.ManagementService/Login, duration=323.006334ms, response={"wgPubKey":"BqHpsTib..."}

Issue ticket number and link

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

@sonarqubecloud
Copy link

mlsmaycon added a commit that referenced this pull request Mar 29, 2025
set default for hook when caller is not set

based on #3585
@mlsmaycon mlsmaycon closed this Mar 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants