[Slashdotjp-dev 1240] [768] * Add logcheck ignore rules for journal_update_slashbox.pl

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2008年 9月 24日 (水) 21:09:38 JST


Revision: 768
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=768
Author:   tach
Date:     2008-09-24 21:09:38 +0900 (Wed, 24 Sep 2008)

Log Message:
-----------
 * Add logcheck ignore rules for journal_update_slashbox.pl
 * Fix condition cont.

Modified Paths:
--------------
    slashjp/branches/2.5.0.192/debian/changelog
    slashjp/branches/2.5.0.192/debian/slash-backend.logcheck.ignore.server
    slashjp/branches/2.5.0.192/plugins/Journal/journal_update_slashbox.pl


-------------- next part --------------
Modified: slashjp/branches/2.5.0.192/debian/changelog
===================================================================
--- slashjp/branches/2.5.0.192/debian/changelog	2008-09-24 09:54:22 UTC (rev 767)
+++ slashjp/branches/2.5.0.192/debian/changelog	2008-09-24 12:09:38 UTC (rev 768)
@@ -3,8 +3,9 @@
   * Add getThemeType() method to check theme type
     into plugin/Journal/Journal.pm
   * A number of entries in journal slashbox is from constant "journal_top"
+  * Add logcheck ignore rules for journal_update_slashbox.pl
 
- -- Taku YASUI <tach****@osdn*****>  Wed, 24 Sep 2008 04:20:24 +0000
+ -- Taku YASUI <tach****@osdn*****>  Wed, 24 Sep 2008 11:58:27 +0000
 
 slash (2.5.0.192-18) unstable; urgency=low
 

Modified: slashjp/branches/2.5.0.192/debian/slash-backend.logcheck.ignore.server
===================================================================
--- slashjp/branches/2.5.0.192/debian/slash-backend.logcheck.ignore.server	2008-09-24 09:54:22 UTC (rev 767)
+++ slashjp/branches/2.5.0.192/debian/slash-backend.logcheck.ignore.server	2008-09-24 12:09:38 UTC (rev 768)
@@ -41,6 +41,8 @@
 \[daily_archive\.pl\] (Archiving|archived) [0-9/]+
 \[daily_archive\.pl\] (article\.pl|prog2file):?
 \[counthits\.pl\] [0-9]+ of [0-9]+ sids updated for
+\[journal_update_slashbox\.pl\] Updated block
+\[journal_update_slashbox\.pl\] Could not get (block|tid for) ".*", skipped
 \[zoo_run_people_log\.pl\] Zoo fof/eof (Begin|Processing|End)
 (BEGIN|END) MODERATORD EXECUTION
 ^Eligible: [0-9]+

Modified: slashjp/branches/2.5.0.192/plugins/Journal/journal_update_slashbox.pl
===================================================================
--- slashjp/branches/2.5.0.192/plugins/Journal/journal_update_slashbox.pl	2008-09-24 09:54:22 UTC (rev 767)
+++ slashjp/branches/2.5.0.192/plugins/Journal/journal_update_slashbox.pl	2008-09-24 12:09:38 UTC (rev 768)
@@ -29,9 +29,13 @@
 			next;
 		}
 		my $tids = [ $slashdb->getAllChildrenTids($skin->{nexus}) ];
+		unless (@$tids > 0) {
+			slashdLog("Could not get tid for \"$name\", skipped");
+			next;
+		}
 		my $where = '1=1';
 		$where .= ' AND tid IN ('.join(',', @$tids).')' if ($skin->{skid} != $constants->{mainpage_skid});
-		next if ($slashdb->sqlCount('journals', $where . ($force ? '' : "AND date > '$block->{last_update}'")) < 1);
+		next if ($slashdb->sqlCount('journals', $where . ($force ? '' : " AND date > '$block->{last_update}'")) < 1);
 
 		slashdLog("Start updating block \"$name\"") if (verbosity() >= 3);
 		my $result = $slashdb->sqlSelectAllHashrefArray(


Slashdotjp-dev メーリングリストの案内
Back to archive index