From 082c440f13e352a6fc601b3c8a693b5ee8dc5170 Mon Sep 17 00:00:00 2001 From: Zachary Carter Date: Thu, 8 Aug 2019 23:48:25 +0300 Subject: [PATCH] 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 --- lib/pure/logging.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pure/logging.nim b/lib/pure/logging.nim index 4dcf181b80..4720e02e42 100644 --- a/lib/pure/logging.nim +++ b/lib/pure/logging.nim @@ -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. ##