We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a98dd4 commit 4c80614Copy full SHA for 4c80614
tools/utils/cloud-image-downloader.sh
@@ -48,10 +48,7 @@ log_message() {
48
local timestamp=$(date +'%Y-%m-%d %H:%M:%S')
49
50
# Log to file
51
- echo "${timestamp} [${priority}] ${message}" >> "$LOG_FILE"
52
-
53
- # Log to console
54
- echo "${timestamp} [${priority}] ${message}"
+ echo "${timestamp} [${priority}] ${message}” | tee ${LOG_FILE}
55
56
# Log to syslog using logger utility
57
logger -t "${LOGGER_TAG}" -p "${LOGGER_FACILITY}.${priority}" -- "${message}"
0 commit comments