Skip to content

add config logging - #53

Open
rsalmond wants to merge 1 commit into
mainfrom
log-config
Open

add config logging#53
rsalmond wants to merge 1 commit into
mainfrom
log-config

Conversation

@rsalmond

Copy link
Copy Markdown

Partial fix for #52

I needed this while debugging something. This logs what config is being used, but not where it comes from. It also doesn't log any output until somebody hits a wordpress URL and application.php gets loaded.

But this is maybe enough to get us started debugging things?

[25-Aug-2026 19:12:07 UTC] === CURRENT CONFIGURATION ===
[25-Aug-2026 19:12:07 UTC] Array
(
    [ABSPATH] => /app/web/wp/
    [WP_ENV] => stage
    [WP_HOME] => https://canopy.gpogear.ca
    [WP_SITEURL] => https://canopy.gpogear.ca/wp
    [CONTENT_DIR] => /app
    [WP_CONTENT_DIR] => /app/web/app
    [WP_CONTENT_URL] => https://canopy.gpogear.ca/app
    [DB_NAME] => canopy
    [DB_USER] => canopy
    [DB_PASSWORD] => [REDACTED: 24 chars]
    [DB_HOST] => 10.56.0.3
    [DB_CHARSET] => utf8mb4
    [DB_COLLATE] =>
    [AUTH_KEY] => [REDACTED]
    [SECURE_AUTH_KEY] => [REDACTED]
    [LOGGED_IN_KEY] => [REDACTED]
    [NONCE_KEY] => [REDACTED]
    [AUTH_SALT] => [REDACTED]
    [SECURE_AUTH_SALT] => [REDACTED]
    [LOGGED_IN_SALT] => [REDACTED]
    [NONCE_SALT] => [REDACTED]
    [AUTOMATIC_UPDATER_DISABLED] => 1
    [DISABLE_WP_CRON] =>
    [DISALLOW_FILE_EDIT] => 1
    [DISALLOW_FILE_MODS] => 1
    [WP_POST_REVISIONS] => 1
    [CONCATENATE_SCRIPTS] =>
    [WP_DEBUG_DISPLAY] =>
    [WP_DEBUG_LOG] => /dev/stderr
    [SCRIPT_DEBUG] =>
)
[25-Aug-2026 19:12:07 UTC] =============================

@rsalmond
rsalmond requested a review from IanEdington August 25, 2026 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant