[mirrorbrain-commits] [opensuse-svn] r6373 - trunk/tools/download-redirector-v2/mirrorprobe

From: Novell Forge SVN <noreply_at_novell.com>
Date: Wed, 4 Feb 2009 09:30:51 -0700 (MST)
Author: poeml
Date: 2009-02-04 09:30:29 -0700 (Wed, 04 Feb 2009)
New Revision: 6373

Modified:
   trunk/tools/download-redirector-v2/mirrorprobe/mirrorprobe.py
Log:
mirrorprobe: 
 - decrease loglevel of non-reachability mails from warning to debug
 - don't add a line to the comment field each time a mirror is not reachable
 - these events should actually be tracked in a separate database table.


Modified: trunk/tools/download-redirector-v2/mirrorprobe/mirrorprobe.py
===================================================================
--- trunk/tools/download-redirector-v2/mirrorprobe/mirrorprobe.py	2009-02-04 15:49:51 UTC (rev 6372)
+++ trunk/tools/download-redirector-v2/mirrorprobe/mirrorprobe.py	2009-02-04 16:30:29 UTC (rev 6373)
@@ -257,22 +257,20 @@
                 mail.getSubject = lambda x: '[%s] mirrorprobe warning: %s replied with %s' \
                                     % (config.instance, mirror.identifier, mirror.response_code)
 
-                logging.warning("""%s: (%s): response code not 200: %s: 
-
+                logging.debug("""%s: (%s): response code not 200: %s: 
 I am not disabling this host, and continue to watch it...
-
 """ % (mirror.identifier, mirror.baseurl, mirror.response_code))
 
                 # reset the getSubject method...
                 mail.getSubject = lambda x: 'no subject set'
 
-                comment = mirror.comment or ''
-                comment += ('\n*** mirrorprobe, %s: got status code %s' % (time.ctime(), mirror.response_code))
+                #comment = mirror.comment or ''
+                #comment += ('\n*** mirrorprobe, %s: got status code %s' % (time.ctime(), mirror.response_code))
                 logging.debug('setting enabled=0 for %s' % (mirror.identifier))
                 if not options.no_run:
                     # mirror.enabled = 0
                     mirror.statusBaseurl = 0
-                    mirror.comment = comment
+                    #mirror.comment = comment
 
             logging.debug('still dead: %s (%s): %s: %s' % (mirror.identifier, mirror.baseurl, mirror.response_code, mirror.response))
 

_______________________________________________
Opensuse-svn mailing list
Opensuse-svn_at_forge.novell.com
http://forge.novell.com/mailman/listinfo/opensuse-svn


_______________________________________________
mirrorbrain-commits mailing list

Note: To remove yourself from this list, send a mail with the content
 	unsubscribe
to the address mirrorbrain-commits-request_at_mirrorbrain.org
Received on 2009-02-04Z16:31:21

This archive was generated by hypermail 2.2.0 : 2009-07-10Z19:18:11 GMT