-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
internal/group/group.service.go
Outdated
// 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)) |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you kub
No description provided.