mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 01:14:41 +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
This commit is contained in:
committed by
Andreas Rumpf
parent
81ddc67785
commit
082c440f13
@@ -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