diff options
author | Andrew Dolgov <[email protected]> | 2013-04-12 09:55:41 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-04-12 09:55:41 +0400 |
commit | 9bfda43e775ff23d980795363c3c792fd6d8b89d (patch) | |
tree | 2fbdef2d92773b6d43926dd45e4413f7ec1a0f4c /include/digest.php | |
parent | 79f9bef767ba0e0a35c8bf8411bb90feac35a551 (diff) |
digest: use proper logging, update.php: fix typo
Diffstat (limited to 'include/digest.php')
-rw-r--r-- | include/digest.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/digest.php b/include/digest.php index ab29d9432..34b699094 100644 --- a/include/digest.php +++ b/include/digest.php @@ -33,7 +33,7 @@ if ($preferred_ts && time() >= $preferred_ts && time() - $preferred_ts <= 7200) { - if ($debug) print "Sending digest for UID:" . $line['id'] . " - " . $line["email"] . " ... "; + if ($debug) _debug("Sending digest for UID:" . $line['id'] . " - " . $line["email"]); $do_catchup = get_pref($link, 'DIGEST_CATCHUP', $line['id'], false); @@ -54,16 +54,16 @@ $rc = $mail->quickMail($line["email"], $line["login"] , DIGEST_SUBJECT, $digest, $digest_text); - if (!$rc && $debug) print "ERROR: " . $mail->ErrorInfo; + if (!$rc && $debug) _debug("ERROR: " . $mail->ErrorInfo); - if ($debug) print "RC=$rc\n"; + if ($debug) _debug("RC=$rc"); if ($rc && $do_catchup) { - if ($debug) print "Marking affected articles as read...\n"; + if ($debug) _debug("Marking affected articles as read..."); catchupArticlesById($link, $affected_ids, 0, $line["id"]); } } else { - if ($debug) print "No headlines\n"; + if ($debug) _debug("No headlines"); } db_query($link, "UPDATE ttrss_users SET last_digest_sent = NOW() |