[xiph-commits] r14911 - branches/dir.xiph.org
balbinus at svn.xiph.org
balbinus at svn.xiph.org
Sun May 18 05:55:30 PDT 2008
Author: balbinus
Date: 2008-05-18 05:55:30 -0700 (Sun, 18 May 2008)
New Revision: 14911
Modified:
branches/dir.xiph.org/by_genre.php
branches/dir.xiph.org/search.php
Log:
Add logging here too.
Modified: branches/dir.xiph.org/by_genre.php
===================================================================
--- branches/dir.xiph.org/by_genre.php 2008-05-18 12:47:31 UTC (rev 14910)
+++ branches/dir.xiph.org/by_genre.php 2008-05-18 12:55:30 UTC (rev 14911)
@@ -21,6 +21,16 @@
$search_string);
$search_string_hash = jenkins_hash_hex($search_string);
+ // Logging
+ try
+ {
+ statsLog::keywordsSearched(statsLog::SEARCH_TYPE_GENRE, $search_string);
+ }
+ catch (SQLException $e)
+ {
+ // Do nothing, it's just logging after all...
+ }
+
// Get the data from the Memcache server
if (($results = $memcache->get(ENVIRONMENT.'_search_genre_'.$search_string_hash)) === false)
{
Modified: branches/dir.xiph.org/search.php
===================================================================
--- branches/dir.xiph.org/search.php 2008-05-18 12:47:31 UTC (rev 14910)
+++ branches/dir.xiph.org/search.php 2008-05-18 12:55:30 UTC (rev 14911)
@@ -57,6 +57,16 @@
{
$search_string_hash = jenkins_hash_hex($search_string);
$search_in = implode(', ', $search_in);
+
+ // Logging
+ try
+ {
+ statsLog::keywordsSearched(statsLog::SEARCH_TYPE_FREEFORM, $search_string);
+ }
+ catch (SQLException $e)
+ {
+ // Do nothing, it's just logging after all...
+ }
// Get the data from the Memcache server
if (($results = $memcache->get(ENVIRONMENT.'_search_'.$search_string_hash)) === false)
More information about the commits
mailing list