DCD-1369: Updated the documentation and fix the default value and respect to alt_tomcat_log_access variable for all versions

This commit is contained in:
nghazalibeiklar 2022-01-13 12:50:04 +11:00
parent 6ded2027eb
commit 8cce735461
No known key found for this signature in database
GPG Key ID: 900C605B850D1965
2 changed files with 3 additions and 2 deletions

View File

@ -115,7 +115,7 @@ of the setup. They can be controlled via the below environment variables.
The context path the application is served over. `CATALINA_CONTEXT_PATH` is The context path the application is served over. `CATALINA_CONTEXT_PATH` is
also supported for backwards compatability. also supported for backwards compatability.
* `ATL_TOMCAT_ACCESS_LOG` (default: false) * `ATL_TOMCAT_ACCESS_LOG` (default: false [version < 7.11.0] and true [version >=7.11.0])
Whether to enable Tomcat access logging; set to `true` to enable. *NOTE*: Whether to enable Tomcat access logging; set to `true` to enable. *NOTE*:
These logs are written to the Container internal volume by default (under These logs are written to the Container internal volume by default (under

View File

@ -41,7 +41,8 @@
<Manager pathname=""/> <Manager pathname=""/>
<Valve className="org.apache.catalina.valves.StuckThreadDetectionValve" <Valve className="org.apache.catalina.valves.StuckThreadDetectionValve"
threshold="60"/> threshold="60"/>
{% if (confluence_version.split('.') | map('int') | list) >= ('7.11.0'.split('.') | map('int') | list) or atl_tomcat_access_log == 'true' %} {% if ((atl_tomcat_access_log == 'true') or
(atl_tomcat_access_log is none and (confluence_version.split('.') | map('int') | list) >= ('7.11.0'.split('.') | map('int') | list)) ) %}
<Valve className="org.apache.catalina.valves.AccessLogValve" <Valve className="org.apache.catalina.valves.AccessLogValve"
requestAttributesEnabled="true" requestAttributesEnabled="true"
directory="logs" directory="logs"