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

U0E-10990: Log error when a partial read of any DB Query. #932

Open
wants to merge 9 commits into
base: ci
Choose a base branch
from

Conversation

pm-priyanka-bagade
Copy link
Collaborator

No description provided.

@pm-priyanka-bagade pm-priyanka-bagade changed the title U0E-10990: Return error when a partial read of any DB Query. U0E-10990: Log error when a partial read of any DB Query. Oct 7, 2024
@@ -15,6 +16,10 @@ func (c *cache) populateCacheWithPubSlotNameHash(pubID int) (err error) {
cacheKey := key(PubSlotNameHash, pubID)

publisherSlotNameHashMap, err := c.db.GetPublisherSlotNameHash(pubID)
if err != nil {
glog.Errorf("[QueryFailure] for GetSlotNameHash with err: %v", err)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please use below format.
const DBError = [DBError] query:[%s] pubid:[%v] profileid:[%v] error:[%s]

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.

4 participants