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
|
||||
|
||||
proc wrHook(line: string) {.closure.} =
|
||||
if gMode == mepc: discard
|
||||
else: writelnToChannel(line)
|
||||
if gMode == mepc:
|
||||
if gLogging: logStr(line)
|
||||
else:
|
||||
writelnToChannel(line)
|
||||
|
||||
msgs.writelnHook = wrHook
|
||||
suggestionResultHook = sugResultHook
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue