Fixed template code with binding

This commit is contained in:
Yury Benesh 2012-07-19 23:42:08 +03:00
commit c6fa27e814

View file

@ -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)