]> git.mxchange.org Git - friendica.git/commitdiff
added more notifier logging
authorFriendika <info@friendika.com>
Thu, 25 Nov 2010 10:53:19 +0000 (02:53 -0800)
committerFriendika <info@friendika.com>
Thu, 25 Nov 2010 10:53:19 +0000 (02:53 -0800)
include/notifier.php
mod/item.php

index 8af67898c78aa0fa69e59e6bf3c05e992d84a9e0..72adab750c4f2b8dc2bfd9a146f5499afea70603 100644 (file)
@@ -20,6 +20,8 @@
 
        $a->set_baseurl(get_config('system','url'));
 
+       logger('notifier: invoked: ' . print_r($argv,true));
+
        $cmd = $argv[1];
 
        switch($cmd) {
                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);
                                }
index 77fdd4a21d72a9ad62cdb559023a6bd3c4cd3d75..bd4f4d9afa3952367a07b1d83f0e7fdef2bba2cf 100644 (file)
@@ -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));