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-13 23:30:14 +0100 |
commit | d64e218abdadb3036e32ff62bc0c38b0118121f5 (patch) | |
tree | ce2e6390c63559f04fc123e3c5bc682ecc58d0ab | |
parent | dfa30999293c51b889609c499e2d7c05f984b082 (diff) | |
download | Nim-d64e218abdadb3036e32ff62bc0c38b0118121f5.tar.gz |
nimsuggest: only log when logging is enabled (#10646)
fixes #6199
-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 |