Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Group service #6

Merged
merged 12 commits into from
Jul 5, 2024
Merged

Group service #6

merged 12 commits into from
Jul 5, 2024

Conversation

wiraphatys
Copy link
Contributor

No description provided.

// Convert to RPC format and update cache
groupRPC := s.convertToGroupRPC(group)
if err := s.cache.SetValue(cacheKey, groupRPC, 3600); err != nil {
s.log.Warn("Failed to set group in cache", zap.String("user_id", in.UserId), zap.Error(err))
Copy link
Contributor

@bookpanda bookpanda Jul 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s.log.Named("FindOne").Error("SetValue: Failed to set group in cache", zap.String("user_id", in.UserId), zap.Error(err))
please make all the logs in service look smt like this:
s.log.Name("service_method").Error("function_inside_service_method: blah", zap.Error(err) or other error formats)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let me edit come code

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you kub

@wiraphatys wiraphatys merged commit 0993234 into dev Jul 5, 2024
2 checks passed
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.

2 participants