[CalendarServer-changes] [3481] CalendarServer/trunk/twistedcaldav/accounting.py

source_changes at macosforge.org source_changes at macosforge.org
Tue Dec 9 09:00:10 PST 2008


Revision: 3481
          http://trac.macosforge.org/projects/calendarserver/changeset/3481
Author:   cdaboo at apple.com
Date:     2008-12-09 09:00:10 -0800 (Tue, 09 Dec 2008)
Log Message:
-----------
Use hashed directory layout for accounting.

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

Modified: CalendarServer/trunk/twistedcaldav/accounting.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/accounting.py	2008-12-09 16:54:48 UTC (rev 3480)
+++ CalendarServer/trunk/twistedcaldav/accounting.py	2008-12-09 17:00:10 UTC (rev 3481)
@@ -84,7 +84,13 @@
     # Obtain the accounting log file name
     #
     logRoot = config.AccountingLogRoot
-    logDirectory = os.path.join(logRoot, principal.record.recordType, principal.record.shortName, category)
+    logDirectory = os.path.join(
+        logRoot,
+        principal.record.guid[0:2],
+        principal.record.guid[2:4],
+        principal.record.guid,
+        category
+    )
     logFilename = os.path.join(logDirectory, datetime.datetime.now().isoformat())
 
     if not os.path.isdir(logDirectory):
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20081209/ac56c152/attachment.html>


More information about the calendarserver-changes mailing list