Commits

Tim McNamara committed 8da43e9

Content of sites' pages now sent to stdout

Comments (0)

Files changed (1)

     Creates a watchdog.Service from the URL. URLs must have a trailing /.
     """
     name = urlparse(url)[2]
-    return eval("Service(name='%s',monitor=(HTTP(GET='%s',success=[Print('%s watchdog --- %s up')])))" % (name, url, now(), url))
+#   return eval("""Service(name='%s', monitor=(HTTP(GET='%s', success=[Print('%s watchdog --- %s up')])))""" % (name, url, now(), url))
+    return eval("""Service(name='%s', monitor=(HTTP(GET='%s', success=[LogResult('Content=')])))""" % (name, url))
 
 monitor = Monitor(
   site('http://archaeology.okfn.org/'),