From 469a7d258ce256ea22b3df3fe40fb7ec0ef129ef Mon Sep 17 00:00:00 2001 From: Federico Ceratto Date: Fri, 24 Feb 2017 14:58:02 +0000 Subject: [PATCH] Add warning about log flushing. Related to #3269 (#5424) --- lib/pure/logging.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/pure/logging.nim b/lib/pure/logging.nim index 5544a4b3f4..65724f75a6 100644 --- a/lib/pure/logging.nim +++ b/lib/pure/logging.nim @@ -46,6 +46,8 @@ ## ## **Warning:** The global list of handlers is a thread var, this means that ## the handlers must be re-added in each thread. +## **Warning:** When logging on disk or console, only error and fatal messages +## are flushed out immediately. Use flushFile() where needed. import strutils, times when not defined(js):