mirror of
https://github.com/pi-hole/pi-hole
synced 2025-01-03 12:40:56 +00:00
Print group table contents in debug log.
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
parent
96031214c6
commit
0d28dce326
@ -1076,18 +1076,27 @@ show_db_entries() {
|
||||
IFS="$OLD_IFS"
|
||||
}
|
||||
|
||||
show_groups() {
|
||||
show_db_entries "Groups" "SELECT * FROM \"group\"" "4 100 7 10 13 50"
|
||||
}
|
||||
|
||||
show_adlists() {
|
||||
show_db_entries "Adlists" "SELECT * FROM adlist" "4 100 7 10 13 50"
|
||||
show_db_entries "Adlist groups" "SELECT * FROM adlist_by_group" "4 100 7 10 13 50"
|
||||
}
|
||||
|
||||
show_whitelist() {
|
||||
show_db_entries "Exact whitelist" "SELECT * FROM whitelist" "4 100 7 10 13 50"
|
||||
show_db_entries "Regex whitelist" "SELECT * FROM regex_whitelist" "4 100 7 10 13 50"
|
||||
show_db_entries "Exact whitelist groups" "SELECT * FROM regex_whitelist_by_group" "4 100 7 10 13 50"
|
||||
show_db_entries "Regex whitelist groups" "SELECT * FROM whitelist_by_group" "4 100 7 10 13 50"
|
||||
}
|
||||
|
||||
show_blacklist() {
|
||||
show_db_entries "Exact blacklist" "SELECT * FROM blacklist" "4 100 7 10 13 50"
|
||||
show_db_entries "Regex blacklist" "SELECT * FROM regex_blacklist" "4 100 7 10 13 50"
|
||||
show_db_entries "Exact blacklist groups" "SELECT * FROM regex_blacklist_by_group" "4 100 7 10 13 50"
|
||||
show_db_entries "Regex blacklist groups" "SELECT * FROM blacklist_by_group" "4 100 7 10 13 50"
|
||||
}
|
||||
|
||||
analyze_gravity_list() {
|
||||
@ -1263,6 +1272,7 @@ process_status
|
||||
parse_setup_vars
|
||||
check_x_headers
|
||||
analyze_gravity_list
|
||||
show_groups
|
||||
show_adlists
|
||||
show_whitelist
|
||||
show_blacklist
|
||||
|
Loading…
Reference in New Issue
Block a user