Skip to content

Commit 558491e

Browse files
sudo87DaanHoogland
andcommitted
Update tools/utils/cloud-image-downloader.sh
Co-authored-by: dahn <daan.hoogland@gmail.com>
1 parent 10d0a39 commit 558491e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tools/utils/cloud-image-downloader.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,7 @@ log_message() {
4848
local timestamp=$(date +'%Y-%m-%d %H:%M:%S')
4949

5050
# Log to file
51-
echo "${timestamp} [${priority}] ${message}" >> "$LOG_FILE"
52-
53-
# Log to console
54-
echo "${timestamp} [${priority}] ${message}"
51+
echo "${timestamp} [${priority}] ${message}” | tee ${LOG_FILE}
5552
5653
# Log to syslog using logger utility
5754
logger -t "${LOGGER_TAG}" -p "${LOGGER_FACILITY}.${priority}" -- "${message}"

0 commit comments

Comments
 (0)