From 75af9b8cd18ac5ef20f999d814cfba2b65543e85 Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 14 Jul 2013 18:32:20 -0700 Subject: more logging on hubloc import - figure out why it did not get stored. --- include/zot.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/zot.php') diff --git a/include/zot.php b/include/zot.php index 6c8a21d1a..520a7383d 100644 --- a/include/zot.php +++ b/include/zot.php @@ -593,6 +593,7 @@ function import_xchan($arr) { dbesc($location['url']) ); if($r) { + logger('import_xchan: hub exists: ' . $location['url']); if((($r[0]['hubloc_flags'] & HUBLOC_FLAGS_PRIMARY) && (! $location['primary'])) || ((! ($r[0]['hubloc_flags'] & HUBLOC_FLAGS_PRIMARY)) && ($location['primary']))) { $r = q("update hubloc set hubloc_flags = (hubloc_flags ^ %d) where hubloc_id = %d limit 1", @@ -614,7 +615,7 @@ function import_xchan($arr) { intval(HUBLOC_FLAGS_PRIMARY) ); } - + logger('import_xchan: new hub: ' . $location['url']); $r = q("insert into hubloc ( hubloc_guid, hubloc_guid_sig, hubloc_hash, hubloc_addr, hubloc_flags, hubloc_url, hubloc_url_sig, hubloc_host, hubloc_callback, hubloc_sitekey) values ( '%s','%s','%s','%s', %d ,'%s','%s','%s','%s','%s')", dbesc($arr['guid']), -- cgit v1.2.3