Skip to content

Commit

Permalink
Improve log output of scheduler and mailing
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-lerch committed Jul 28, 2020
1 parent 206498b commit aa8c1b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion mailing.php
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,8 @@ function ko_mailing_main ($test = false, $mail_id_in = null, $recipient_in = nul
imap_delete($imap, $mail['msgno']);

}//foreach(mails as mail)
} else if ($verbose) {
print "No unread messages to be processed" . PHP_EOL;
}

//Close connection and expunge
Expand All @@ -357,7 +359,7 @@ function ko_mailing_main ($test = false, $mail_id_in = null, $recipient_in = nul


function ko_mailing_handle_mail_group(&$mail,$mail_recipients,$login) {
global $access,$domain,$imap,$sender_email,$RECTYPES;
global $access,$domain,$imap,$sender_email,$RECTYPES,$verbose;

if($login) {
$no_access = FALSE;
Expand Down
2 changes: 1 addition & 1 deletion scheduler.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/

error_reporting(E_ALL);
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);

//Only allow call from cli
if(!isset($argc) || $argc < 1) exit;
Expand Down

0 comments on commit aa8c1b1

Please sign in to comment.