diff feedupdate-main.py @ 13:591ecc2a99bd

move logging configuration to the util module, configure logging for sqlalchemy
author Dirk Olmes <dirk@xanthippe.ping.de>
date Wed, 28 Apr 2010 02:23:00 +0200
parents 9ede118b93ef
children 42a225be7e56
line wrap: on
line diff
--- a/feedupdate-main.py	Wed Apr 28 02:09:48 2010 +0200
+++ b/feedupdate-main.py	Wed Apr 28 02:23:00 2010 +0200
@@ -1,6 +1,6 @@
 #!/usr/bin/env python
 
-from database import createSession
+from util import configureLogging, createSession
 from Feed import Feed
 from FeedUpdater import updateAllFeeds
 import logging
@@ -21,6 +21,7 @@
             print entry.title
 
 if __name__ == "__main__":
+    configureLogging()
     session = createSession()
     
     createFeed(session)