nimsuggest: better logging for EPC mode
This commit is contained in:
parent
2df5a6f863
commit
1ec96d7353
1 changed files with 4 additions and 2 deletions
|
|
@ -403,8 +403,10 @@ proc mainThread(graph: ModuleGraph; cache: IdentCache) =
|
||||||
it = it.next
|
it = it.next
|
||||||
|
|
||||||
proc wrHook(line: string) {.closure.} =
|
proc wrHook(line: string) {.closure.} =
|
||||||
if gMode == mepc: discard
|
if gMode == mepc:
|
||||||
else: writelnToChannel(line)
|
if gLogging: logStr(line)
|
||||||
|
else:
|
||||||
|
writelnToChannel(line)
|
||||||
|
|
||||||
msgs.writelnHook = wrHook
|
msgs.writelnHook = wrHook
|
||||||
suggestionResultHook = sugResultHook
|
suggestionResultHook = sugResultHook
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue