From d64e218abdadb3036e32ff62bc0c38b0118121f5 Mon Sep 17 00:00:00 2001 From: alaviss Date: Tue, 12 Feb 2019 14:17:39 +0700 Subject: [PATCH] nimsuggest: only log when logging is enabled (#10646) fixes #6199 --- nimsuggest/nimsuggest.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nimsuggest/nimsuggest.nim b/nimsuggest/nimsuggest.nim index 1b5e8326d7..ef11cc9e25 100644 --- a/nimsuggest/nimsuggest.nim +++ b/nimsuggest/nimsuggest.nim @@ -520,7 +520,7 @@ proc mainCommand(graph: ModuleGraph) = # do not stop after the first error: conf.errorMax = high(int) # do not print errors, but log them - conf.writelnHook = proc (s: string) = log(s) + conf.writelnHook = myLog conf.structuredErrorHook = nil # compile the project before showing any input so that we already @@ -661,7 +661,7 @@ else: # do not stop after the first error: conf.errorMax = high(int) # do not print errors, but log them - conf.writelnHook = proc (s: string) = log(s) + conf.writelnHook = myLog conf.structuredErrorHook = nil # compile the project before showing any input so that we already