make logging module compile again

This commit is contained in:
Andreas Rumpf
2018-04-30 01:30:23 +02:00
parent 5237ef4f52
commit 83d4a025e2

View File

@@ -126,7 +126,7 @@ proc substituteLog*(frmt: string, level: Level, args: varargs[string, `$`]): str
var v = ""
let app = when defined(js): "" else: getAppFilename()
while frmt[i] in IdentChars:
v.add(toLower(frmt[i]))
v.add(toLowerAscii(frmt[i]))
inc(i)
case v
of "date": result.add(getDateStr())