summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorFederico Ceratto <federico.ceratto@gmail.com>2017-02-24 14:58:02 +0000
committerAndreas Rumpf <rumpf_a@web.de>2017-02-24 15:58:02 +0100
commit469a7d258ce256ea22b3df3fe40fb7ec0ef129ef (patch)
tree02172b777ca06116baf8645327649918ccbb147e
parente8ad59fdc497843e712583cba03cfd1809124bfb (diff)
downloadNim-469a7d258ce256ea22b3df3fe40fb7ec0ef129ef.tar.gz
Add warning about log flushing. Related to #3269 (#5424)
-rw-r--r--lib/pure/logging.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/pure/logging.nim b/lib/pure/logging.nim
index 5544a4b3f..65724f75a 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):