This commit is contained in:
Zahary Karadjov 2018-05-28 18:40:03 +03:00
parent 4b95de14c4
commit 892480adde
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ proc logDestinationFromNode(n: NimNode): LogDestination =
"Only 'file' destinations accept parameters."
result.kind = toFile
result.filename = n[1].repr.replace(" ", "")
if DirSep != '/': result.filename = replace("/", $DirSep)
if DirSep != '/': result.filename = result.filename.replace("/", $DirSep)
else:
error &"Invalid log destination expression '{n.repr}'. " &
"Please refer to the documentation for the supported options."