diff options
author | friendica <info@friendica.com> | 2013-07-14 18:32:20 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-07-14 18:32:20 -0700 |
commit | 75af9b8cd18ac5ef20f999d814cfba2b65543e85 (patch) | |
tree | e5ee1a278ecb2452556f91d99eed1ec89cbe9bc9 /include | |
parent | 97df3116add201770ab2184ae543ba8546c9d02b (diff) | |
download | volse-hubzilla-75af9b8cd18ac5ef20f999d814cfba2b65543e85.tar.gz volse-hubzilla-75af9b8cd18ac5ef20f999d814cfba2b65543e85.tar.bz2 volse-hubzilla-75af9b8cd18ac5ef20f999d814cfba2b65543e85.zip |
more logging on hubloc import - figure out why it did not get stored.
Diffstat (limited to 'include')
-rw-r--r-- | include/zot.php | 3 |
1 files changed, 2 insertions, 1 deletions
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']), |