Skip to content

Conversation

brandonpayton
Copy link
Member

@brandonpayton brandonpayton commented Apr 26, 2024

What is this PR doing?

This PR updates our WP Cloud hosting setup to provide secrets necessary for error logging to WP.org Slack.

Testing Instructions

I tested manually playground-dot-wordpress-dot-net.atomicsites.blog via dev tools console, since the Playground error dialog is hardcoded to log to playground.wordpress.net.

fd = new FormData; fd.append('description', 'PLEASE IGNORE: This is a test.'); fd.append('logs', 'test-logs'); fd.append('url', 'https://playground-dot-wordpress-dot-net.atomicsites.blog/'); fd.append('context', 'test-context'); fd.append('blueprint', 'test-blueprint'); fetch( '/logger.php', { method: 'POST', body: fd } ).then(r => (console.log('logging response', r), r.text())).then( t => console.log('text', t) ) // Results: Promise {<pending>} logging response Response {type: 'basic', url: 'https://playground-dot-wordpress-dot-net.atomicsites.blog/logger.php', redirected: false, status: 200, ok: true, …} text {"ok":true} 

And a message was logged to WP.org Slack here:
https://wordpress.slack.com/archives/C06Q5DCKZ3L/p1714150218128469

@brandonpayton brandonpayton self-assigned this Apr 26, 2024
@brandonpayton brandonpayton changed the title Relay secrets for error logger Website: WP Cloud: Relay secrets for error logger Apr 26, 2024
@brandonpayton brandonpayton merged commit 776e8bb into trunk Apr 26, 2024
@brandonpayton brandonpayton deleted the config-logger-on-wp-cloud branch April 26, 2024 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment