From b45e9d549383915f8d5e6367255d5234755341f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C8=98tefan=20Talpalaru?= Date: Wed, 8 May 2019 02:25:04 +0200 Subject: [PATCH] don't close stdout when using a log file also bump vendor/nim-chronicles and vendor/nim-eth --- nimbus/nimbus.nim | 2 ++ vendor/nim-chronicles | 2 +- vendor/nim-eth | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/nimbus/nimbus.nim b/nimbus/nimbus.nim index 2d4f03326..32aed66ce 100644 --- a/nimbus/nimbus.nim +++ b/nimbus/nimbus.nim @@ -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 diff --git a/vendor/nim-chronicles b/vendor/nim-chronicles index 2424b4747..a064c4035 160000 --- a/vendor/nim-chronicles +++ b/vendor/nim-chronicles @@ -1 +1 @@ -Subproject commit 2424b4747b0257287e5f59fa22e37c017975bbbd +Subproject commit a064c403538d274c9e9aba0995f3e05587b4f3ac diff --git a/vendor/nim-eth b/vendor/nim-eth index bb7990239..14513b3bd 160000 --- a/vendor/nim-eth +++ b/vendor/nim-eth @@ -1 +1 @@ -Subproject commit bb79902399500abc4ef22c151d105e14b000ef9e +Subproject commit 14513b3bd83dc1de3f6c5da17331d7eac95b9332