Skip to content

Commit

Permalink
Merge pull request #159 from MITLibraries/pw-106
Browse files Browse the repository at this point in the history
Skip Sentry configuration in Lando environments
  • Loading branch information
matt-bernhardt authored Sep 17, 2024
2 parents 5aaee3f + 042fe3a commit 1962b29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/wp-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
define( 'WPMS_SMTP_PASS', $secrets['WPMS_SMTP_PASS'] );

// Sentry configuration is optional.
if ( array_key_exists( 'SENTRY_DSN', $secrets ) ) {
if ( array_key_exists( 'SENTRY_DSN', $secrets ) && $_ENV['PANTHEON_ENVIRONMENT'] != 'lando' ) {
define( 'WP_SENTRY_DSN', $secrets['SENTRY_DSN'] );
define( 'WP_SENTRY_ERROR_TYPES', E_ERROR & E_CORE_ERROR & E_COMPILE_ERROR );
define( 'WP_SENTRY_VERSION', 'v1' );
Expand Down

0 comments on commit 1962b29

Please sign in to comment.