Skip to content

Commit bc8d7b3

Browse files
added timestamp for logs
1 parent a168210 commit bc8d7b3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

recipes-devtools/meminsight/files/upload_MemReports.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ STAGING_DIR=""
6565
# Log a message with the standard tag prefix.
6666
# Parameters: $* - message text
6767
log() {
68-
echo "$LOG_TAG $*" >> "$LOG_FILE"
68+
timestamp="$(date '+%Y-%m-%d %H:%M:%S')"
69+
echo "$timestamp $LOG_TAG $*" >> "$LOG_FILE"
6970
}
7071

7172
# Execute a command at lowest I/O and CPU priority.

0 commit comments

Comments
 (0)