Skip to content

Commit

Permalink
Enhance logging to show debug email when used
Browse files Browse the repository at this point in the history
Prior to this, when using an invalid address, user would not see a clear
indication in the log file that the debug email was being used,
resulting in confusion caused by the error message generated by
email_send().

This commit adds a LOG_EMAIL_VERBOSE entry clearly showing when the
debug email address is used.

Fixes #20679
  • Loading branch information
dregad committed Jun 5, 2016
1 parent 8684dfe commit 0bb3cfb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/email_api.php
Expand Up @@ -1147,6 +1147,7 @@ function email_send( EmailData $p_email_data ) {
if( !empty( $t_debug_email ) ) {
$t_message = 'To: ' . $t_recipient . "\n\n" . $t_message;
$t_recipient = $t_debug_email;
log_event(LOG_EMAIL_VERBOSE, "Using debug email '$t_debug_email'");
}

try {
Expand Down

0 comments on commit 0bb3cfb

Please sign in to comment.