aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-10-14 21:56:56 -0700
committerfriendica <info@friendica.com>2013-10-14 21:56:56 -0700
commit83daf51460db24356b0690aff2cfb5e639f98576 (patch)
tree7dee2dd3fa042676891c31de47ed87df0b67481c
parent3a615528e8992055fc1dbff87db8531d3fee1eb7 (diff)
downloadvolse-hubzilla-83daf51460db24356b0690aff2cfb5e639f98576.tar.gz
volse-hubzilla-83daf51460db24356b0690aff2cfb5e639f98576.tar.bz2
volse-hubzilla-83daf51460db24356b0690aff2cfb5e639f98576.zip
extra logging
-rw-r--r--include/dir_fns.php5
-rw-r--r--include/onedirsync.php2
2 files changed, 5 insertions, 2 deletions
diff --git a/include/dir_fns.php b/include/dir_fns.php
index e3cd8ae77..adbcb6e3c 100644
--- a/include/dir_fns.php
+++ b/include/dir_fns.php
@@ -103,12 +103,15 @@ function update_directory_entry($ud) {
logger('update_directory_entry: ' . print_r($ud,true), LOGGER_DATA);
if($ud['ud_addr'] && (! ($ud['ud_flags'] & UPDATE_FLAGS_DELETED))) {
+ $success = false;
$x = zot_finger($ud['ud_addr'],'');
if($x['success']) {
$j = json_decode($x['body'],true);
+ if($j)
+ $success = true;
$y = import_xchan($j,0);
}
- else {
+ if(! $success) {
$r = q("update updates set ud_last = '%s' where ud_addr = '%s'",
dbesc(datetime_convert()),
dbesc($ud['ud_addr'])
diff --git a/include/onedirsync.php b/include/onedirsync.php
index 5f971629f..35fcbbc7b 100644
--- a/include/onedirsync.php
+++ b/include/onedirsync.php
@@ -12,7 +12,7 @@ function onedirsync_run($argv, $argc){
cli_startup();
$a = get_app();
- logger('onedirsync: start');
+ logger('onedirsync: start' . intval($argv[1]));
if(($argc > 1) && (intval($argv[1])))
$update_id = intval($argv[1]);