From 77378da70ad49f6467ac008e8e3f06dc3c543f8c Mon Sep 17 00:00:00 2001 From: Dan Schaper Date: Wed, 15 Mar 2017 23:43:41 -0700 Subject: [PATCH] Cat out temp files to final log. Signed-off-by: Dan Schaper --- advanced/Scripts/piholeDebug.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/advanced/Scripts/piholeDebug.sh b/advanced/Scripts/piholeDebug.sh index 136d92d1..d3c85d3a 100755 --- a/advanced/Scripts/piholeDebug.sh +++ b/advanced/Scripts/piholeDebug.sh @@ -427,7 +427,9 @@ finalWork() { chmod 644 ${DEBUG_LOG} chown "$USER":pihole ${DEBUG_LOG} # copy working temp file to final log location - cp /proc/$$/fd/3 "$DEBUG_LOG" + cat /proc/$$/fd/3 >> "${DEBUG_LOG}" + # Straight dump of tailing the logs, can sanitize later if needed. + cat /proc/$$/fd/4 >> "${DEBUG_LOG}" echo "::: The debug log can be uploaded to tricorder.pi-hole.net for sharing with developers only." if [[ "${AUTOMATED}" ]]; then