[CalendarServer-changes] [3784] CalendarServer/trunk/twistedcaldav/upgrade.py

source_changes at macosforge.org source_changes at macosforge.org
Mon Mar 2 12:59:05 PST 2009


Revision: 3784
          http://trac.macosforge.org/projects/calendarserver/changeset/3784
Author:   sagen at apple.com
Date:     2009-03-02 12:59:00 -0800 (Mon, 02 Mar 2009)
Log Message:
-----------
Changing the log level of most upgrade/migration messages

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/upgrade.py

Modified: CalendarServer/trunk/twistedcaldav/upgrade.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/upgrade.py	2009-03-02 20:36:16 UTC (rev 3783)
+++ CalendarServer/trunk/twistedcaldav/upgrade.py	2009-03-02 20:59:00 UTC (rev 3784)
@@ -103,7 +103,7 @@
                 # Skip directories
                 continue
 
-            log.info("Processing: %s" % (resPath,))
+            log.debug("Processing: %s" % (resPath,))
             needsRewrite = False
             with open(resPath) as res:
                 data = res.read()
@@ -111,7 +111,7 @@
                 try:
                     data, fixed = fixBadQuotes(data)
                     if fixed:
-                        log.info("Fixing bad quotes in %s" % (resPath,))
+                        log.debug("Fixing bad quotes in %s" % (resPath,))
                         needsRewrite = True
                 except Exception, e:
                     log.error("Error while fixing bad quotes in %s: %s" %
@@ -122,7 +122,7 @@
                 try:
                     data, fixed = normalizeCUAddrs(data, directory)
                     if fixed:
-                        log.info("Normalized CUAddrs in %s" % (resPath,))
+                        log.debug("Normalized CUAddrs in %s" % (resPath,))
                         needsRewrite = True
                 except Exception, e:
                     log.error("Error while normalizing %s: %s" %
@@ -153,11 +153,11 @@
 
         errorOccurred = False
 
-        log.info("Upgrading calendar home: %s" % (homePath,))
+        log.debug("Upgrading calendar home: %s" % (homePath,))
 
         for cal in os.listdir(homePath):
             calPath = os.path.join(homePath, cal)
-            log.info("Upgrading calendar: %s" % (calPath,))
+            log.debug("Upgrading calendar: %s" % (calPath,))
             if not upgradeCalendarCollection(calPath, directory):
                 errorOccurred = True
 
@@ -205,7 +205,7 @@
                 % (oldDbPath, newDbPath, str(e))
             )
 
-        log.info(
+        log.debug(
             "Moved the calendar user proxy database from '%s' to '%s'."
             % (oldDbPath, newDbPath,)
         )
@@ -256,7 +256,7 @@
 
             # Now delete the on disk representation of principals
             rmdir(oldPrincipals)
-            log.info(
+            log.debug(
                 "Removed the old principal directory at '%s'."
                 % (oldPrincipals,)
             )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20090302/a88f45dd/attachment.html>


More information about the calendarserver-changes mailing list