Logger Levels

update logger levels in calls
This commit is contained in:
Adam Magness 2018-10-30 09:58:45 -04:00
parent 91ef9f238c
commit 50da89d861
86 changed files with 673 additions and 673 deletions

View file

@ -55,21 +55,21 @@ class Email
if (!$search1) {
$search1 = [];
} else {
Logger::log("Found mails from ".$email_addr, LOGGER_DEBUG);
Logger::log("Found mails from ".$email_addr, Logger::DEBUG);
}
$search2 = @imap_search($mbox, 'TO "' . $email_addr . '"', SE_UID);
if (!$search2) {
$search2 = [];
} else {
Logger::log("Found mails to ".$email_addr, LOGGER_DEBUG);
Logger::log("Found mails to ".$email_addr, Logger::DEBUG);
}
$search3 = @imap_search($mbox, 'CC "' . $email_addr . '"', SE_UID);
if (!$search3) {
$search3 = [];
} else {
Logger::log("Found mails cc ".$email_addr, LOGGER_DEBUG);
Logger::log("Found mails cc ".$email_addr, Logger::DEBUG);
}
$res = array_unique(array_merge($search1, $search2, $search3));