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

Reduce logging level for RESTAPI #8858

Merged
merged 1 commit into from
Sep 29, 2021

Conversation

sumukhatv
Copy link
Contributor

@sumukhatv sumukhatv commented Sep 28, 2021

Why I did it

We are currently receiving a lot of logs from REST-API for every API call. This will consume a lot of disk space which is not required.
resolves sonic-net/sonic-restapi#86

How I did it

Change the log level for RESTAPI in the minigraph.py

How to verify it

The syslogs should not have anymore logs from RESTAPI other than those of info level.

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106

Description for the changelog

A picture of a cute animal (not mandatory but encouraged)

@@ -1616,7 +1616,7 @@ def parse_xml(filename, platform=None, port_config_file=None, asic_name=None, hw
'config': {
'client_auth': 'true',
'allow_insecure': 'false',
'log_level': 'trace'
'log_level': 'info'
Copy link
Contributor

Choose a reason for hiding this comment

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

can we have it as notice level? Also could you place in description how to enable the log to info/trace if it is required for a debugging?

@prsunny
Copy link
Contributor

prsunny commented Sep 29, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Restapi logs are info level that can overload the syslog
4 participants