Merge pull request #3776 from yubiuser/tweak/Debug

Print tail of logs in /var/log/lighttpd in debug run as well
This commit is contained in:
Adam Warner 2020-10-09 13:50:46 +01:00 committed by GitHub
commit 716e981a79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1026,8 +1026,8 @@ list_files_in_dir() {
log_write "\\n${COL_GREEN}$(ls -ld "${dir_to_parse}"/"${each_file}")${COL_NC}"
# Check if the file we want to view has a limit (because sometimes we just need a little bit of info from the file, not the entire thing)
case "${dir_to_parse}/${each_file}" in
# If it's Web server error log, just give the first 25 lines
"${PIHOLE_WEB_SERVER_ERROR_LOG_FILE}") make_array_from_file "${dir_to_parse}/${each_file}" 25
# If it's Web server error log, give the first and last 25 lines
"${PIHOLE_WEB_SERVER_ERROR_LOG_FILE}") head_tail_log "${dir_to_parse}/${each_file}" 25
;;
# Same for the FTL log
"${PIHOLE_FTL_LOG}") head_tail_log "${dir_to_parse}/${each_file}" 35