Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed logging for sitetools

  • Loading branch information...
commit c186d887f645984e98140cb9a29c9524f5f76a5c 1 parent a80590f
@bricef authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 sitetools.py
View
5 sitetools.py
@@ -6,6 +6,7 @@
from functools import *
import pystache
+logger = logging.getLogger(__name__)
def renderfile(name, data={}):
fnames = filter(
@@ -29,14 +30,14 @@ def timeMe(fun):
def timed(*args, **kwargs):
start = time.time()
spill = fun(*args, **kwargs)
- note("%s() took %f seconds to execute"%(fun.__name__, time.time()-start))
+ logger.info("%s() took %f seconds to execute"%(fun.__name__, time.time()-start))
return spill
return timed
def showMe(fun):
def showed(*args, **kwargs):
spill = fun(*args, **kwargs)
- note("%s() returned %s"%(fun.__name__, str(spill)))
+ logger.info("%s() returned %s"%(fun.__name__, str(spill)))
return spill
return showed
Please sign in to comment.
Something went wrong with that request. Please try again.