]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add some logging
authorEvan Prodromou <evan@prodromou.name>
Fri, 18 Jul 2008 20:27:02 +0000 (16:27 -0400)
committerEvan Prodromou <evan@prodromou.name>
Fri, 18 Jul 2008 20:27:02 +0000 (16:27 -0400)
darcs-hash:20080718202702-84dde-7a7e8223323c93cfae74f497cef1cf55e8a75c47.gz

maildaemon.php

index c48335fea5cf43a1e4dab9a938df1ed7e1ccc580..e6a34563061eb62e4694cc16cf47ef30b651656e 100755 (executable)
@@ -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.'));