Skip to content

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
Collaborator

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
@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.

4 participants