From 4db27bb9375d5f77a20dc92cce802c2c2e5ee6ca Mon Sep 17 00:00:00 2001 From: Shish Date: Sat, 23 Jan 2010 18:07:31 +0000 Subject: [PATCH] tag_history logging --- contrib/tag_history/main.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/tag_history/main.php b/contrib/tag_history/main.php index 6ebe9fe2..04e58ec1 100644 --- a/contrib/tag_history/main.php +++ b/contrib/tag_history/main.php @@ -129,6 +129,7 @@ class Tag_History implements Extension { $stored_image_id = $result->fields['image_id']; $stored_tags = $result->fields['tags']; + log_debug("tag_history", "Reverting tags of $stored_image_id to [$stored_tags]"); // all should be ok so we can revert by firing the SetUserTags event. send_event(new TagSetEvent(Image::by_id($stored_image_id), $stored_tags)); @@ -193,6 +194,7 @@ class Tag_History implements Extension { $new_tags = Tag::implode($tags); $old_tags = Tag::implode($image->get_tag_array()); + log_debug("tag_history", "adding tag history: [$old_tags] -> [$new_tags]"); if($new_tags == $old_tags) return; // add a history entry