Changeset 8592 for main/waeup.kofa/trunk/src/waeup/kofa/datacenter.py
- Timestamp:
- 1 Jun 2012, 12:30:57 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/datacenter.py
r8516 r8592 209 209 if RE_LOGFILE_BACKUP_NAME.match(name): 210 210 files.append(name) 211 return sorted(files, key=numerical_suffix )211 return sorted(files, key=numerical_suffix, reverse=True) 212 212 213 213 def queryLogfiles(self, basename, query=None, limit=0, start=0): … … 220 220 All logfiles with name `basename` and maybe some numerical 221 221 extension ('.1', '.2', ...) are searched for the `query` term 222 in correct order. So, if you ask for a basename 'app.log',223 then any file named 'app .log', 'app.log.1', 'app.log.2',222 in correct chronological order. So, if you ask for a basename 'app.log', 223 then any file named 'app2.log', 'app.log.1', 'app.log', 224 224 etc. will be searched in that order. 225 225
Note: See TracChangeset for help on using the changeset viewer.