Only inform user about disabled logging, don't skipp printing pihole.log

Signed-off-by: Christian König <ckoenig@posteo.de>
pull/4162/head
Christian König 3 years ago
parent f2cba6cad1
commit 1ae67e1de8

@ -1328,10 +1328,10 @@ analyze_pihole_log() {
local logging_enabled=$(grep -c "^log-queries" /etc/dnsmasq.d/01-pihole.conf)
if [[ "${logging_enabled}" == "0" ]]; then
# No "log-queries" lines are found.
# Commented out lines (such as "#log-queries") are ignored
# Inform user that logging has been disabled and pihole.log does not contain queries
log_write "${INFO} Query logging is disabled"
else
log_write ""
fi
# Put the current Internal Field Separator into another variable so it can be restored later
OLD_IFS="$IFS"
# Get the lines that are in the file(s) and store them in an array for parsing later
@ -1348,7 +1348,6 @@ analyze_pihole_log() {
log_write ""
# Set the IFS back to what it was
IFS="$OLD_IFS"
fi
}
tricorder_use_nc_or_curl() {

Loading…
Cancel
Save