From c6fa27e8147894774c74a937db9d5598d8ecc165 Mon Sep 17 00:00:00 2001 From: Yury Benesh Date: Thu, 19 Jul 2012 23:42:08 +0300 Subject: [PATCH] Fixed template code with binding --- devel/logging.nim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/devel/logging.nim b/devel/logging.nim index 946837157f..04031e3dee 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)