Fix the build when the Chronicles dynamic output is not used
close #504
This commit is contained in:
parent
f3252a8391
commit
136a11f681
|
@ -881,14 +881,15 @@ when hasPrompt:
|
|||
node.config.statusBarContents,
|
||||
dataResolver)
|
||||
|
||||
defaultChroniclesStream.output.writer =
|
||||
proc (logLevel: LogLevel, msg: LogOutputStr) {.gcsafe.} =
|
||||
# p.hidePrompt
|
||||
erase statusBar
|
||||
# p.writeLine msg
|
||||
stdout.write msg
|
||||
render statusBar
|
||||
# p.showPrompt
|
||||
when compiles(defaultChroniclesStream.output.writer):
|
||||
defaultChroniclesStream.output.writer =
|
||||
proc (logLevel: LogLevel, msg: LogOutputStr) {.gcsafe.} =
|
||||
# p.hidePrompt
|
||||
erase statusBar
|
||||
# p.writeLine msg
|
||||
stdout.write msg
|
||||
render statusBar
|
||||
# p.showPrompt
|
||||
|
||||
proc statusBarUpdatesPollingLoop() {.async.} =
|
||||
while true:
|
||||
|
|
Loading…
Reference in New Issue