From ca706ccbed47ba8bf07afaaa825088afcde8cd91 Mon Sep 17 00:00:00 2001 From: Friendika Date: Thu, 25 Nov 2010 02:53:19 -0800 Subject: [PATCH] added more notifier logging --- include/notifier.php | 3 +++ mod/item.php | 3 +++ 2 files changed, 6 insertions(+) diff --git a/include/notifier.php b/include/notifier.php index 8af67898c7..72adab750c 100644 --- a/include/notifier.php +++ b/include/notifier.php @@ -20,6 +20,8 @@ $a->set_baseurl(get_config('system','url')); + logger('notifier: invoked: ' . print_r($argv,true)); + $cmd = $argv[1]; switch($cmd) { @@ -207,6 +209,7 @@ if($followup) { foreach($items as $item) { // there is only one item if($item['id'] == $item_id) { + logger('notifier: followup: item: ' . print_r($item,true), LOGGER_DATA); $slap = atom_entry($item,'html',$owner,$owner,false); $atom .= atom_entry($item,'text',$owner,$owner,false); } diff --git a/mod/item.php b/mod/item.php index 77fdd4a21d..bd4f4d9afa 100644 --- a/mod/item.php +++ b/mod/item.php @@ -228,6 +228,7 @@ function item_post(&$a) { dbesc($uri)); if(count($r)) { $post_id = $r[0]['id']; + logger('mod_item: saved item ' . $post_id); if($parent) { @@ -313,6 +314,8 @@ function item_post(&$a) { $php_path = ((strlen($a->config['php_path'])) ? $a->config['php_path'] : 'php'); + logger('mod_item: notifier invoked: ' . "\"$php_path\" \"include/notifier.php\" \"$notify_type\" \"$post_id\" &"); + proc_close(proc_open("\"$php_path\" \"include/notifier.php\" \"$notify_type\" \"$post_id\" &", array(),$foo));