From 522f28d5a584415d3583e456a0e877b3afbcfa3c Mon Sep 17 00:00:00 2001 From: Slava Pestov Date: Tue, 23 Mar 2010 05:07:44 -0400 Subject: [PATCH] webapps.planet: wrap feed updating within a with-logging form so that errors fetch-feed don't break everything. Previously if there was an error fetching a feed, the update task would just stop --- extra/webapps/planet/planet.factor | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/extra/webapps/planet/planet.factor b/extra/webapps/planet/planet.factor index eb51acbe1a..a003c8b618 100644 --- a/extra/webapps/planet/planet.factor +++ b/extra/webapps/planet/planet.factor @@ -1,4 +1,4 @@ -! Copyright (C) 2008 Slava Pestov. +! Copyright (C) 2008, 2010 Slava Pestov. ! See http://factorcode.org/license.txt for BSD license. USING: kernel accessors sequences sorting math math.order calendar alarms logging concurrency.combinators namespaces @@ -194,4 +194,7 @@ posting "POSTINGS" { planet "planet-common" } >>template ; : start-update-task ( db -- ) - '[ _ [ update-cached-postings ] with-db ] 10 minutes every drop ; + '[ + "webapps.planet" + [ _ [ update-cached-postings ] with-db ] with-logging + ] 10 minutes every drop ;