Skip to content

Commit 62d3f50

Browse files
committed
qa: fix deprecated log.warn in feature_dbcrash test
This clears up the following deprecation message when running the test: ``` test/functional/feature_dbcrash.py:270: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead self.log.warn("Node %d never crashed during utxo flush!", i) ``` Git grepping indicates that this was the last remaining use of `log.warn` in the functional tests.
1 parent 74ea1f3 commit 62d3f50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/functional/feature_dbcrash.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def run_test(self):
267267
# Warn if any of the nodes escaped restart.
268268
for i in range(3):
269269
if self.restart_counts[i] == 0:
270-
self.log.warn("Node %d never crashed during utxo flush!", i)
270+
self.log.warning("Node %d never crashed during utxo flush!", i)
271271

272272
if __name__ == "__main__":
273273
ChainstateWriteCrashTest().main()

0 commit comments

Comments
 (0)