Skip to content

Commit

Permalink
qa: fix deprecated log.warn in feature_dbcrash test
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jonatack committed Jul 29, 2019
1 parent 74ea1f3 commit 62d3f50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/functional/feature_dbcrash.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def run_test(self):
# Warn if any of the nodes escaped restart.
for i in range(3):
if self.restart_counts[i] == 0:
self.log.warn("Node %d never crashed during utxo flush!", i)
self.log.warning("Node %d never crashed during utxo flush!", i)

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

0 comments on commit 62d3f50

Please sign in to comment.