summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorZachary Carter <carterza@gmail.com>2019-08-08 23:48:25 +0300
committerAndreas Rumpf <rumpf_a@web.de>2019-08-08 22:48:25 +0200
commit082c440f13e352a6fc601b3c8a693b5ee8dc5170 (patch)
treec6612c6b828bb378191084cd108336bb412f69e7 /lib
parent81ddc67785fe4eb25f50ec56d6e22010246a7e0f (diff)
downloadNim-082c440f13e352a6fc601b3c8a693b5ee8dc5170.tar.gz
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
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/logging.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/logging.nim b/lib/pure/logging.nim
index 4dcf181b8..4720e02e4 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.
   ##