add some logging

darcs-hash:20080718202702-84dde-7a7e8223323c93cfae74f497cef1cf55e8a75c47.gz
This commit is contained in:
Evan Prodromou 2008-07-18 16:27:02 -04:00
parent c31d6e7fb1
commit 957df3d43d
1 changed files with 1 additions and 0 deletions

View File

@ -41,6 +41,7 @@ class MailerDaemon {
if (!$from || !$to || !$msg) {
$this->error(NULL, _t('Could not parse message.'));
}
common_log(LOG_INFO, "Mail from $from to $to: " .substr($msg, 0, 20));
$user = User::staticGet('email', common_canonical_email($from));
if (!$user) {
$this->error($from, _('Not a registered user.'));