We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10d0a39 commit 558491eCopy full SHA for 558491e
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