Skip to content

Commit

Permalink
Merge pull request #5763 from Automattic/staging
Browse files Browse the repository at this point in the history
Production release v20240730.0
  • Loading branch information
rebeccahum authored Jul 30, 2024
2 parents 0e73678 + c5f417b commit 9ba3c2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions logstash/class-logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ public static function process_entries_on_shutdown(): void {

// Process all entries.
foreach ( static::$entries as $entry ) {
if ( ! defined( 'VIP_GO_ENV' ) || ! VIP_GO_ENV ) {
if ( ! defined( 'VIP_GO_ENV' ) || ! VIP_GO_ENV || constant( 'VIP_GO_ENV' ) === 'local' ) {
static::maybe_wp_debug_log_entries( $entry );
continue; // Bypassing logstash log writing below in this case.
}
Expand Down Expand Up @@ -565,11 +565,6 @@ public static function maybe_wp_debug_log_entries( array $entry ): void {
* @param array $entry Data.
*/
public static function wp_debug_log( array $entry ): void {
if ( defined( 'VIP_GO_ENV' ) && VIP_GO_ENV ) {
// Don't run this on VIP Go
return;
}

$log_path = WP_CONTENT_DIR . '/debug.log';
$log_path = is_string( WP_DEBUG_LOG ) && WP_DEBUG_LOG ? WP_DEBUG_LOG : $log_path;

Expand Down

0 comments on commit 9ba3c2b

Please sign in to comment.