diff options
author | alaviss <alaviss@users.noreply.github.com> | 2019-02-12 14:17:39 +0700 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-02-12 08:17:39 +0100 |
commit | cf5812aa9f9089f40275ae4d162f8a715635aad8 (patch) | |
tree | 92eef64639c0d204274c4377c91ae1c3c5aedfa8 /nimsuggest | |
parent | c59fa80367b25c83c0e35714a4e15862b704764e (diff) | |
download | Nim-cf5812aa9f9089f40275ae4d162f8a715635aad8.tar.gz |
nimsuggest: only log when logging is enabled (#10646)
fixes #6199
Diffstat (limited to 'nimsuggest')
-rw-r--r-- | nimsuggest/nimsuggest.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nimsuggest/nimsuggest.nim b/nimsuggest/nimsuggest.nim index 1b5e8326d..ef11cc9e2 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 |