Skip to content

Commit 4c80614

Browse files
sudo87DaanHoogland
andauthored
Update tools/utils/cloud-image-downloader.sh
Co-authored-by: dahn <[email protected]>
1 parent 6a98dd4 commit 4c80614

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)