Skip to content
Snippets Groups Projects
Verified Commit e1818710 authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

add fine-grained debug logging control

parent a64ac67e
No related branches found
No related tags found
1 merge request!102Resolve "Custom plugin for WP"
Pipeline #11587 passed with stages
in 1 minute and 9 seconds
......@@ -112,7 +112,12 @@ wordpress:
# correctly.
probe_path: /wp-login.php
# Set to true to set WP_DEBUG on in the configuration
debug: false
debug:
enabled: false
# IF debug.enabled, log to wp-content/debug.log
log: true
# IF debug.enabled, log to screen
screen: false
# Install includes all parent, child, default, active and fallback themes
# NOTE: Use theme *slugs* here
......@@ -350,7 +355,9 @@ ansibleSecrets: |
WP_CONTENT_REPO_URL: https://{{ .Values.git_repo.token_user }}:{{ .Values.git_repo.token_key }}@{{ .Values.git_repo.url }}{{ .Values.git_repo.name }}
WP_OPENID_CONNECT_ROLE_MAPPING_ENABLED: {{ .Values.openid_connect_settings.role_mapping_enabled }}
WP_CONTENT_REPO_VERSION: {{ .Values.git_repo.version }}
WP_DEBUG: {{ .Values.wordpress.site.debug }}
WP_DEBUG_ENABLED: {{ .Values.wordpress.site.debug.enabled }}
WP_DEBUG_LOG: {{ .Values.wordpress.site.debug.log }}
WP_DEBUG_SCREEN: {{ .Values.wordpress.site.debug.screen }}
WP_EMAIL: {{ .Values.wordpress.config.adm.email }}
WP_PASS: {{ .Values.wordpress.config.adm.pssw }}
WP_REDIS_ENABLED: {{ .Values.redis.enabled }}
......
......@@ -171,11 +171,15 @@
# Enables or disables WordPress' debug mode
- name: Set debug mode
shell: wp {{ cli_args }} config set WP_DEBUG {{ WP_DEBUG }} --raw --type=constant
shell: wp {{ cli_args }} config set WP_DEBUG {{ WP_DEBUG_ENABLED }} --raw --type=constant
# Enables or disables WordPress' debug mode
- name: Set debug mode
shell: wp {{ cli_args }} config set WP_DEBUG_LOG {{ WP_DEBUG }} --raw --type=constant
shell: wp {{ cli_args }} config set WP_DEBUG_LOG {{ WP_DEBUG_LOG }} --raw --type=constant
# Enables or disables WordPress' debug mode
- name: Set debug mode
shell: wp {{ cli_args }} config set WP_DEBUG_SCREEN {{ WP_DEBUG_SCREEN }} --raw --type=constant
- import_tasks: mu-plugins.yml
when: WP_MU_PLUGINS_ENABLED
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment