aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnthony Towns <aj@erisian.com.au>2018-05-03 11:09:28 +1000
committerMarcoFalke <falke.marco@gmail.com>2019-05-28 14:26:42 -0400
commit0b282f9b00da08734e2381477aad32d64b933745 (patch)
treeecc2d8957a556773296dbde794f5f330c4d3f5cb /test
parent412987430c98e78ccda033ab1cf7a176a4c0b835 (diff)
downloadbitcoin-0b282f9b00da08734e2381477aad32d64b933745.tar.xz
Log early messages with -printtoconsole
This ensures log messages prior to StartLogging() are replayed to the console as well as to the debug log file.
Diffstat (limited to 'test')
-rwxr-xr-xtest/functional/feature_config_args.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/functional/feature_config_args.py b/test/functional/feature_config_args.py
index 2b93e3c24d..074a832594 100755
--- a/test/functional/feature_config_args.py
+++ b/test/functional/feature_config_args.py
@@ -61,9 +61,16 @@ class ConfArgsTest(BitcoinTestFramework):
with open(inc_conf_file2_path, 'w', encoding='utf-8') as conf:
conf.write('') # clear
+ def test_log_buffer(self):
+ with self.nodes[0].assert_debug_log(expected_msgs=['Warning: parsed potentially confusing double-negative -connect=0']):
+ self.start_node(0, extra_args=['-noconnect=0'])
+ self.stop_node(0)
+
def run_test(self):
self.stop_node(0)
+ self.test_log_buffer()
+
self.test_config_file_parser()
# Remove the -datadir argument so it doesn't override the config file