diff --git a/plugins/bp-reply-by-email/includes/bp-rbe-functions.php b/plugins/bp-reply-by-email/includes/bp-rbe-functions.php index bafa60153..e373e130e 100644 --- a/plugins/bp-reply-by-email/includes/bp-rbe-functions.php +++ b/plugins/bp-reply-by-email/includes/bp-rbe-functions.php @@ -495,7 +495,7 @@ function bp_rbe_log( $message ) { if ( empty( $message ) ) return; - error_log( '[' . gmdate( 'd-M-Y H:i:s' ) . '] ' . $message . "\n", 3, BP_RBE_DEBUG_LOG_PATH ); + error_log( '[' . gmdate( 'd-M-Y H:i:s' ) . '] BP RBE: ' . $message ); } /** diff --git a/site/config/application.php b/site/config/application.php index 4d1cdb0e0..32fce7563 100644 --- a/site/config/application.php +++ b/site/config/application.php @@ -346,6 +346,7 @@ function_exists('wp_is_cli') && wp_is_cli() * BuddyPress Reply By Email */ Config::define( 'BP_RBE_SPARKPOST_WEBHOOK_TOKEN', getenv( 'BP_RBE_SPARKPOST_WEBHOOK_TOKEN' ) ); +Config::define( 'BP_RBE_DEBUG', getenv( 'BP_RBE_DEBUG' ) ); /** * Social Accounts