More logging switching

This commit is contained in:
Daniel Martí 2014-01-27 17:08:54 +01:00
parent 1b743e8b74
commit 1e3c2eee25
5 changed files with 32 additions and 27 deletions

View file

@ -19,6 +19,7 @@
from optparse import OptionParser
import re
import logging
import common, metadata
config = None
@ -31,7 +32,7 @@ def warn(message):
if appid:
print "%s:" % appid
appid = None
print(' %s' % message)
print ' %s' % message
def main():
@ -136,7 +137,7 @@ def main():
if not appid:
print
print "Finished."
logging.info("Finished.")
if __name__ == "__main__":
main()