diff --git a/notifications/trunk/batch/batch_tools.php b/notifications/trunk/batch/batch_tools.php index 53defcc9463ea553bfb6265720a1d7d99fa73ae0..732caa3757d89b6fc781c2e161f0c774a54e42b2 100755 --- a/notifications/trunk/batch/batch_tools.php +++ b/notifications/trunk/batch/batch_tools.php @@ -104,9 +104,9 @@ function Bt_logInDataBase($totalProcessed=0, $totalErrors=0, $info='') . $GLOBALS['db']->current_datetime() . ", " . $totalProcessed . ", " . $totalErrors . ", '" . $GLOBALS['func']->protect_string_db(substr(str_replace('\\', '\\\\', str_replace("'", "`", $info)), 0, 999)) . "')"; //. $GLOBALS['func']->protect_string_db(substr($info, 0, 999)) . "')"; - $dbLog = new dbquery(); + /*$dbLog = new dbquery(); $dbLog->connect(); - $dbLog->query($query); + $dbLog->query($query);*/ //Bt_doQuery($GLOBALS['db'], $query); } diff --git a/notifications/trunk/batch/process_email_stack.php b/notifications/trunk/batch/process_email_stack.php index 46fac0d0039919f26fce5a93273dccb88667c1d2..8da95120724e93c10a8b367044f79a6bfc8b11c9 100755 --- a/notifications/trunk/batch/process_email_stack.php +++ b/notifications/trunk/batch/process_email_stack.php @@ -80,7 +80,8 @@ while ($state <> 'END') { $exec_result = 'SENT'; } else { - $GLOBALS['logger']->write("Errors when sending message through SMTP :" . implode(', ', $GLOBALS['mailer']->errors), 'ERROR'); + //$GLOBALS['logger']->write("Errors when sending message through SMTP :" . implode(', ', $GLOBALS['mailer']->errors), 'ERROR'); + $GLOBALS['logger']->write("Errors when sending message through SMTP :" . $GLOBALS['mailer']->errors); $exec_result = 'FAILED'; } $query = "UPDATE " . _NOTIF_EMAIL_STACK_TABLE_NAME