Index: /main/waeup.kofa/trunk/src/waeup/kofa/datacenter.py
===================================================================
--- /main/waeup.kofa/trunk/src/waeup/kofa/datacenter.py	(revision 8515)
+++ /main/waeup.kofa/trunk/src/waeup/kofa/datacenter.py	(revision 8516)
@@ -35,5 +35,5 @@
 
 #: Regular expression describing a logfile name with backup extension
-RE_LOGFILE_NAME = re.compile('^.+\.\d+$')
+RE_LOGFILE_BACKUP_NAME = re.compile('^.+\.\d+$')
 
 class DataCenter(grok.Container, Logger):
@@ -85,6 +85,8 @@
         return result
 
-    def getLogFiles(self):
+    def getLogFiles(self, exclude_backups=True):
         """Get the files from logs/ subdir. Files are sorted by name.
+
+        By default backup logs ('app.log.1', etc.) are excluded.
         """
         result = []
@@ -94,4 +96,6 @@
         for name in sorted(os.listdir(logdir)):
             if not os.path.isfile(os.path.join(logdir, name)):
+                continue
+            if exclude_backups == True and RE_LOGFILE_BACKUP_NAME.match(name):
                 continue
             result.append(
@@ -203,5 +207,5 @@
         files = [basename,]
         for name in os.listdir(os.path.join(self.storage, 'logs')):
-            if RE_LOGFILE_NAME.match(name):
+            if RE_LOGFILE_BACKUP_NAME.match(name):
                 files.append(name)
         return sorted(files, key=numerical_suffix)
