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:
parent
81ddc67785
commit
082c440f13
1 changed files with 1 additions and 1 deletions
|
|
@ -320,7 +320,7 @@ proc substituteLog*(frmt: string, level: Level, args: varargs[string, `$`]): str
|
||||||
|
|
||||||
method log*(logger: Logger, level: Level, args: varargs[string, `$`]) {.
|
method log*(logger: Logger, level: Level, args: varargs[string, `$`]) {.
|
||||||
raises: [Exception], gcsafe,
|
raises: [Exception], gcsafe,
|
||||||
tags: [TimeEffect, WriteIOEffect, ReadIOEffect], base.} =
|
tags: [RootEffect], base.} =
|
||||||
## Override this method in custom loggers. The default implementation does
|
## Override this method in custom loggers. The default implementation does
|
||||||
## nothing.
|
## nothing.
|
||||||
##
|
##
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue