Ignore:
Timestamp:
5 Dec 2012, 08:32:11 (12 years ago)
Author:
Henrik Bettermann
Message:

Ease customization of logging format. We use this for the new payments logger.

Do not show payments.log on logfile search page.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/datacenter.py

    r9589 r9769  
    116116        """Get the files from logs/ subdir. Files are sorted by name.
    117117
    118         By default backup logs ('app.log.1', etc.) are excluded.
     118        By default backup logs ('app.log.1', etc.) and payments.log
     119        are excluded.
    119120        """
    120121        result = []
     
    124125        for name in sorted(os.listdir(logdir)):
    125126            if not os.path.isfile(os.path.join(logdir, name)):
     127                continue
     128            if name == 'payments.log':
    126129                continue
    127130            if exclude_backups == True and RE_LOGFILE_BACKUP_NAME.match(name):
Note: See TracChangeset for help on using the changeset viewer.