extra logging

This commit is contained in:
friendica 2013-10-14 21:56:56 -07:00
parent 3a615528e8
commit 83daf51460
2 changed files with 5 additions and 2 deletions

View File

@ -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'])

View File

@ -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]);