summary refs log tree commit diff stats
path: root/devel
diff options
context:
space:
mode:
authorYury Benesh <ybxsoft@tut.by>2012-07-19 23:42:08 +0300
committerYury Benesh <ybxsoft@tut.by>2012-07-19 23:42:08 +0300
commitc6fa27e8147894774c74a937db9d5598d8ecc165 (patch)
tree50d27dea665a48905d764c6a79f615b357bce062 /devel
parentbc519fdd51c66fa527e1d4999f245211f8aab1b5 (diff)
downloadNim-c6fa27e8147894774c74a937db9d5598d8ecc165.tar.gz
Fixed template code with binding
Diffstat (limited to 'devel')
-rw-r--r--devel/logging.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/devel/logging.nim b/devel/logging.nim
index 946837157..04031e3de 100644
--- a/devel/logging.nim
+++ b/devel/logging.nim
@@ -123,6 +123,9 @@ proc logLoop(level: TLevel, frmt: string, args: openarray[string]) =
 template log*(level: TLevel, frmt: string, args: openarray[string]) =
   ## logs a message of the given level
   bind logLoop
+  bind `%`
+  bind logging.Level
+  
   if level >= logging.Level:
     logLoop(level, frmt, args)