Skip to content

Commit d3584fc

Browse files
authored
Remove LOGLEVEL DB since is no longer used (#129)
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
1 parent 7f008a1 commit d3584fc

File tree

3 files changed

+1
-11
lines changed

3 files changed

+1
-11
lines changed

src/swsssdk/config/database_config.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@
2222
"separator": ":",
2323
"instance" : "redis"
2424
},
25-
"LOGLEVEL_DB" : {
26-
"id" : 3,
27-
"separator": ":",
28-
"instance" : "redis"
29-
},
3025
"CONFIG_DB" : {
3126
"id" : 4,
3227
"separator": "|",

src/swsssdk/sonic_db_dump_load.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def do_load(options, args):
113113
parser.add_option('-A', '--use-expireat', help='use EXPIREAT rather than TTL/EXPIRE', action='store_true')
114114
else:
115115
parser.add_option('-l', '--load', help='load data into redis (default is to dump data from redis)', action='store_true')
116-
parser.add_option('-n', '--dbname', help='dump DATABASE (APPL_DB/ASIC_DB/COUNTERS_DB/LOGLEVEL_DB/CONFIG_DB...)')
116+
parser.add_option('-n', '--dbname', help='dump DATABASE (APPL_DB/ASIC_DB/COUNTERS_DB/CONFIG_DB...)')
117117
parser.add_option('-t', '--conntype', help='indicate redis connection type (tcp[default] or unix_socket)', default='tcp')
118118
parser.add_option('-k', '--keys', help='dump only keys matching specified glob-style pattern')
119119
parser.add_option('-o', '--output', help='write to OUTPUT instead of stdout (dump mode only)')

test/config/database_config.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@
2222
"separator": ":",
2323
"instance" : "redis"
2424
},
25-
"LOGLEVEL_DB" : {
26-
"id" : 3,
27-
"separator": ":",
28-
"instance" : "redis"
29-
},
3025
"CONFIG_DB" : {
3126
"id" : 4,
3227
"separator": "|",

0 commit comments

Comments
 (0)