diff options
author | Yury Benesh <ybxsoft@tut.by> | 2012-07-19 23:42:08 +0300 |
---|---|---|
committer | Yury Benesh <ybxsoft@tut.by> | 2012-07-19 23:42:08 +0300 |
commit | c6fa27e8147894774c74a937db9d5598d8ecc165 (patch) | |
tree | 50d27dea665a48905d764c6a79f615b357bce062 /devel | |
parent | bc519fdd51c66fa527e1d4999f245211f8aab1b5 (diff) | |
download | Nim-c6fa27e8147894774c74a937db9d5598d8ecc165.tar.gz |
Fixed template code with binding
Diffstat (limited to 'devel')
-rw-r--r-- | devel/logging.nim | 3 |
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) |