Mercurial > hg > Feedworm
comparison feedupdate.py @ 219:38d1898e7d82
include the time when logging
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Sun, 27 Apr 2014 06:19:04 +0200 |
parents | bb3c851b18b1 |
children | a383abe2e81a |
comparison
equal
deleted
inserted
replaced
218:699d8f1cebd4 | 219:38d1898e7d82 |
---|---|
2 # -*- coding: utf-8 -*- | 2 # -*- coding: utf-8 -*- |
3 import BackendFactory | 3 import BackendFactory |
4 import logging | 4 import logging |
5 | 5 |
6 if __name__ == "__main__": | 6 if __name__ == "__main__": |
7 logging.basicConfig(level=logging.DEBUG) | 7 logFormat = '%(asctime)s ' + logging.BASIC_FORMAT |
8 logging.basicConfig(format=logFormat, level=logging.DEBUG) | |
8 backend = BackendFactory.createBackend() | 9 backend = BackendFactory.createBackend() |
9 backend.updateAllFeeds() | 10 backend.updateAllFeeds() |
10 backend.expireFeedEntries() | 11 backend.expireFeedEntries() |
11 backend.dispose() | 12 backend.dispose() |