]> git.mxchange.org Git - friendica.git/commitdiff
add some debug logging
authorZach Prezkuta <fermion@gmx.com>
Wed, 13 Jun 2012 01:05:01 +0000 (19:05 -0600)
committerZach Prezkuta <fermion@gmx.com>
Tue, 26 Jun 2012 01:03:03 +0000 (19:03 -0600)
include/items.php
mod/item.php
mod/like.php

index 7e8b8af4ccea02dac9421d6caad115e2a661a4d6..7d51261db94c3535bd06b0cc6da25afdd07a1eb5 100755 (executable)
@@ -3461,6 +3461,7 @@ function store_diaspora_retract_sig($item, $user, $baseurl) {
 
        $enabled = intval(get_config('system','diaspora_enabled'));
        if(! $enabled) {
+               logger('drop_item: diaspora support disabled, not storing retraction signature', LOGGER_DEBUG);
                return;
        }
 
index 5c179bc7a187bc3c7ff063e12b1d5a25ba2f4de7..b8afe76d146c6dab92314832a03f4f88fbf418f8 100644 (file)
@@ -1035,6 +1035,7 @@ function store_diaspora_comment_sig($datarray, $user, $baseurl, $parent_item, $p
 
        $enabled = intval(get_config('system','diaspora_enabled'));
        if(! $enabled) {
+               logger('mod_item: diaspora support disabled, not storing comment signature', LOGGER_DEBUG);
                return;
        }
 
index 29a77aa13543f7625f98f54cfebfe0ec54bb37dc..3c6dfa59b5426a55967830f05211d5bba70af969 100755 (executable)
@@ -235,8 +235,10 @@ function store_diaspora_like_retract_sig($activity, $item, $like_item, $contact)
        // likes on photos, so don't bother.
 
        $enabled = intval(get_config('system','diaspora_enabled'));
-       if(! $enabled)
+       if(! $enabled) {
+               logger('mod_like: diaspora support disabled, not storing like retraction signature', LOGGER_DEBUG);
                return;
+       }
 
        logger('mod_like: storing diaspora like retraction signature');
 
@@ -288,8 +290,10 @@ function store_diaspora_like_sig($activity, $post_type, $contact, $post_id) {
        // only checks the parent_author_signature if it doesn't have to relay further
 
        $enabled = intval(get_config('system','diaspora_enabled'));
-       if(! $enabled)
+       if(! $enabled) {
+               logger('mod_like: diaspora support disabled, not storing like signature', LOGGER_DEBUG);
                return;
+       }
 
        logger('mod_like: storing diaspora like signature');