some small tweaks to log output
authorterom
Thu, 31 Jan 2008 19:16:02 +0000
changeset 29 990300aa8010
parent 28 70b6c13d084f
child 30 b1d5c32ab771
some small tweaks to log output
lib/log.py
lib/shorturl.py
--- a/lib/log.py	Thu Jan 31 19:13:00 2008 +0000
+++ b/lib/log.py	Thu Jan 31 19:16:02 2008 +0000
@@ -30,7 +30,7 @@
 def title (title, *args) :
     stack.append(title)
 
-    print "%s- %s" % (" "*g.out_depth, title % args)
+    print "%s - %s" % (" "*g.out_depth, title % args)
 
     g.out_depth += 1
 
@@ -63,10 +63,10 @@
                 g.node = None
         
         if wait :
-            print "%s- %s..." % (" "*g.out_depth, message % args),
+            print "%s - %s..." % (" "*g.out_depth, message % args),
             sys.stdout.flush()
         else :
-            print "%s- %s" % (" "*g.out_depth, message % args)
+            print "%s - %s" % (" "*g.out_depth, message % args)
 
 def _level (level) :
     def _log_func (message, *args, **kwargs) :
--- a/lib/shorturl.py	Thu Jan 31 19:13:00 2008 +0000
+++ b/lib/shorturl.py	Thu Jan 31 19:16:02 2008 +0000
@@ -145,7 +145,7 @@
     else :
         assert(False, "%r %r" % (obj, id))
 
-    log.info("img %50s %15s = %d %s", dir, fname, id, key)
+    log.info("%6s -> %s/%s", key, dir, fname)
 
 def updateDB (root) :
     """