Skip to content

Commit a4baab8

Browse files
committed
[XEN-3155] fix entrypoint scripts failing the json logging test because they do not report the correct fields for an application type log
1 parent 29bb882 commit a4baab8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tomcat-base/src/shared/main/bash/entrypoint/docker-entrypoint.d/90-logging-env-vars.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e
55
# LOG_LEVEL_ environment variables and tells the Java process to use it.
66

77
function log() {
8-
echo '{ "timestamp" : '"$(date '+%s')"' ,"severity" : "INFO", "type" : "application","component" : "docker-entrypoint" ,"fullMessage" : "'"$1"'"}'
8+
echo '{ "timestamp" : '"$(date '+%s')"' ,"severity" : "INFO", "type" : "entrypoint","component" : "docker-entrypoint" ,"fullMessage" : "'"$1"'"}'
99
}
1010

1111
if [ "$LOG4J_VERSION" = "1" ]; then

0 commit comments

Comments
 (0)