Skip to content

Commit

Permalink
Fix error log
Browse files Browse the repository at this point in the history
  • Loading branch information
weiiwang01 committed Mar 1, 2024
1 parent b6e2b77 commit dfaca8a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion wordpress_rock/files/etc/apache2/apache2.conf
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ HostnameLookups Off
# logged here. If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog ${APACHE_LOG_DIR}/error.log
ErrorLog "|$ tee -a ${APACHE_LOG_DIR}/error.log 1>&2"

#
# LogLevel: Control the severity of messages logged to the error_log.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@
# modules, e.g.
#LogLevel info ssl:warn

# 2023/02/14
# Write logs to both files for loki log scraping and stdout for kubernetes
# container logs. Required for loki integration.
ErrorLog "|$ tee {APACHE_LOG_DIR}/error.log"
CustomLog "${APACHE_LOG_DIR}/access.log" logfmt
CustomLog /dev/stdout logfmt

Expand Down

0 comments on commit dfaca8a

Please sign in to comment.