Skip to content

Reduce logging level for RESTAPI#8858

Merged
sumukhatv merged 1 commit intosonic-net:masterfrom
sumukhatv:restapi_log_level
Sep 29, 2021
Merged

Reduce logging level for RESTAPI#8858
sumukhatv merged 1 commit intosonic-net:masterfrom
sumukhatv:restapi_log_level

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)

'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