From 04170328b12bcaa779d99d89811879cf795a70c6 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 29 Apr 2013 18:21:23 -0700 Subject: add some debugging - update times are changing much faster than they're supposed to. Log what has changed. --- include/zot.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/zot.php') diff --git a/include/zot.php b/include/zot.php index 9addf80cf..7a2db3920 100644 --- a/include/zot.php +++ b/include/zot.php @@ -475,6 +475,9 @@ function import_xchan($arr) { return $ret; } + + logger('import_xchan: ' . $xchan_hash, LOGGER_DEBUG); + $r = q("select * from xchan where xchan_hash = '%s' limit 1", dbesc($xchan_hash) ); @@ -517,6 +520,10 @@ function import_xchan($arr) { dbesc($arr['url']), dbesc($xchan_hash) ); + + logger('import_xchan: existing: ' . print_r($r[0],true), LOGGER_DATA); + logger('import_xchan: new: ' . print_r($arr,true), LOGGER_DATA); + update_modtime($xchan_hash); $changed = true; } -- cgit v1.2.3