Skip to content

Commit

Permalink
Remove LOGLEVEL DB since is no longer used (#129)
Browse files Browse the repository at this point in the history
This PR is part of the following HLD:
Persistent loglevel HLD: sonic-net/SONiC#1041
**- What I did**
Deleted the LOGLEVEL_DB.
After the Logger tables moved from the LOGLEVEL_DB to the CONFIG_DB and the jinja2_cache was deleted the LOGLEVEL_DB is not in use.
**- How I did it**
Removed the LOGLEVEL_DB from the SONiC code

**- How to verify it**
All tests were passed
  • Loading branch information
EdenGri authored Nov 13, 2022
1 parent 7f008a1 commit d3584fc
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
5 changes: 0 additions & 5 deletions src/swsssdk/config/database_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@
"separator": ":",
"instance" : "redis"
},
"LOGLEVEL_DB" : {
"id" : 3,
"separator": ":",
"instance" : "redis"
},
"CONFIG_DB" : {
"id" : 4,
"separator": "|",
Expand Down
2 changes: 1 addition & 1 deletion src/swsssdk/sonic_db_dump_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def do_load(options, args):
parser.add_option('-A', '--use-expireat', help='use EXPIREAT rather than TTL/EXPIRE', action='store_true')
else:
parser.add_option('-l', '--load', help='load data into redis (default is to dump data from redis)', action='store_true')
parser.add_option('-n', '--dbname', help='dump DATABASE (APPL_DB/ASIC_DB/COUNTERS_DB/LOGLEVEL_DB/CONFIG_DB...)')
parser.add_option('-n', '--dbname', help='dump DATABASE (APPL_DB/ASIC_DB/COUNTERS_DB/CONFIG_DB...)')
parser.add_option('-t', '--conntype', help='indicate redis connection type (tcp[default] or unix_socket)', default='tcp')
parser.add_option('-k', '--keys', help='dump only keys matching specified glob-style pattern')
parser.add_option('-o', '--output', help='write to OUTPUT instead of stdout (dump mode only)')
Expand Down
5 changes: 0 additions & 5 deletions test/config/database_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@
"separator": ":",
"instance" : "redis"
},
"LOGLEVEL_DB" : {
"id" : 3,
"separator": ":",
"instance" : "redis"
},
"CONFIG_DB" : {
"id" : 4,
"separator": "|",
Expand Down

0 comments on commit d3584fc

Please sign in to comment.