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

cleanup redundant logs in cns savestate-file, createorUpdateNetworkCo… #2442

Merged
merged 3 commits into from
Dec 19, 2023

Conversation

kmurudi
Copy link
Contributor

@kmurudi kmurudi commented Dec 15, 2023

…ntainer

Reason for Change:
Improve database threshold by removing non-useful log lines with no data. Currently these 3 log lines contribute to approximately 33% of the cns logs in DB & yet give no data related to the request. This gives us more space to add useful log lines in future & save data to customers running CNS instances.

Issue Fixed:

Requirements:

Notes:

@kmurudi kmurudi requested a review from a team as a code owner December 15, 2023 21:31
@kmurudi kmurudi requested a review from csfmomo December 15, 2023 21:31
} else {
logger.Errorf("[Azure CNS] Failed to save state., err:%v\n", err)
if err != nil {
logger.Errorf("[Azure CNS] Failed to save state, err: %v", err)
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe we don't need to log an error in this method if we're returning it and the caller can log it instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

for this method saveState() there are quite a few usages (~13) & all of them do not log the error currently, may require some work there probably we can address in next PR

@kmurudi kmurudi merged commit 545d134 into master Dec 19, 2023
72 of 76 checks passed
@kmurudi kmurudi deleted the CNSLogs_Cleanup branch December 19, 2023 11:07
matmerr pushed a commit that referenced this pull request Jan 17, 2024
#2442)

cleanup redundant logs in cns savestate-file, createorUpdateNetworkContainer
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