don't close stdout when using a log file

also bump vendor/nim-chronicles and vendor/nim-eth
This commit is contained in:
Ștefan Talpalaru 2019-05-08 02:25:04 +02:00
parent 86d741f3f3
commit b45e9d5493
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
3 changed files with 4 additions and 2 deletions

View File

@ -41,8 +41,10 @@ proc start(): NimbusObject =
var nimbus = NimbusObject()
var conf = getConfiguration()
## logging
setLogLevel(conf.debug.logLevel)
if len(conf.debug.logFile) != 0:
defaultChroniclesStream.output.outFile = nil # to avoid closing stdout
discard defaultChroniclesStream.output.open(conf.debug.logFile, fmAppend)
## Creating RPC Server

@ -1 +1 @@
Subproject commit 2424b4747b0257287e5f59fa22e37c017975bbbd
Subproject commit a064c403538d274c9e9aba0995f3e05587b4f3ac

2
vendor/nim-eth vendored

@ -1 +1 @@
Subproject commit bb79902399500abc4ef22c151d105e14b000ef9e
Subproject commit 14513b3bd83dc1de3f6c5da17331d7eac95b9332