Fixes effect error in pure/logging.nim (#11898)

* Fix effect error in pure/logging.nim

Currently calling `logging.log` will produce - `Error: can have an unlisted effect: RootEffect`. Add `RootEffect` to list of tags.

* the only tag necessary is RootEffect since all other Effects are descendants of RootEffect
This commit is contained in:
Zachary Carter
2019-08-08 23:48:25 +03:00
committed by Andreas Rumpf
parent 81ddc67785
commit 082c440f13

View File

@@ -320,7 +320,7 @@ proc substituteLog*(frmt: string, level: Level, args: varargs[string, `$`]): str
method log*(logger: Logger, level: Level, args: varargs[string, `$`]) {.
raises: [Exception], gcsafe,
tags: [TimeEffect, WriteIOEffect, ReadIOEffect], base.} =
tags: [RootEffect], base.} =
## Override this method in custom loggers. The default implementation does
## nothing.
##