mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-09 13:18:11 +00:00
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
(cherry picked from commit 082c440f13)
This commit is contained in:
committed by
narimiran
parent
f13a783958
commit
1cd8b01206
@@ -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.
|
||||
##
|
||||
|
||||
Reference in New Issue
Block a user