-
Notifications
You must be signed in to change notification settings - Fork 342
Make the loglevel persistent by moving the LOGGER table from the LOGLEVEL DB to the CONFIG DB #687
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
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
7206d0f
Start update swsssloglevel script, Add -d option to return all compon…
EdenGri cdf055e
change the logger class to use CONFIG DB instead of LOGLEVEL DB
EdenGri 870fe09
changing LOGGER string to constant
EdenGri a055e5e
update
EdenGri ba27e7d
update unit tests logger of moving the Logger tables to the CONFIG DB
EdenGri f758118
bug fix: change the key_prefix
EdenGri 3d1e0f1
add unit test for the swssloglevel script, update logger_ut to use CO…
EdenGri 6952679
change prefix string name
EdenGri 1c1ec15
add the loglevel unit test to the Makefile
EdenGri fe9019a
add include of loglevel.cpp
EdenGri 7a8aa61
change the select table to LOGGER
EdenGri c601138
loglevel unit tests
EdenGri a4e1ae2
removin UT, bug fix changing the key in logger.cpp file
EdenGri ec0d20d
remove unused del_table function
EdenGri 77abc83
add example in the help option for changing all components loglevel
EdenGri 815e440
add UT for persistent loglevel
EdenGri 915e574
remove/add debug logs
EdenGri a90f80c
add default loglevel as constant
EdenGri 4fd96d7
fixes after code review
EdenGri 7a57fec
change DEBUG log message
EdenGri 4b3e39d
bug fix: return code 1 in swssloglevel -p
EdenGri 12fa97a
Fix after public code review: use a table instead dbConnector when ac…
EdenGri 25d3848
bug fix: change key from LOGLEVEL to LOGOUTPUT
EdenGri File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| #ifndef __LOGLEVEL_H__ | ||
| #define __LOGLEVEL_H__ | ||
|
|
||
| #define DEFAULT_LOGLEVEL "NOTICE" | ||
| #define SAI_DEFAULT_LOGLEVEL "SAI_LOG_LEVEL_NOTICE" | ||
|
|
||
| int swssloglevel(int argc, char** argv); | ||
|
|
||
| #endif /* __LOGLEVEL_H__ */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| #include "loglevel.h" | ||
|
|
||
| int main(int argc, char** argv) | ||
| { | ||
| swssloglevel(argc,argv); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.