-
Notifications
You must be signed in to change notification settings - Fork 242
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
add logs for home az monitor #1899
Conversation
cns/restserver/homeazmonitor.go
Outdated
h.updateCacheValue(resp) | ||
} | ||
|
||
// logHomeAzResponse logs HomeAz Response | ||
func (h *HomeAzMonitor) logHomeAzResponse(resp cns.GetHomeAzResponse) { |
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.
Hey Zetao, thinking more on this, I think we should log the HomeAzResponse everytime ( not just when it gets updated ). That's because, we may lose the AZ log if it doesn't change ( which it shouldn't ) for long time. Having that log would be beneficial.
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.
that is right. I will update this
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.
we don't need the func body below. We should just print the resp struct here.
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.
but in this way we can log it as error when there have errors in refreshing home az. it makes more flexible to set alerts in future.
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.
I would keep the logging simple. Since we already have logic in DNC to identify mismatch on the home AZ we can add alerting there
Reason for Change:
Issue Fixed:
Requirements:
Notes: