diff options
author | Jon Atack <jon@atack.com> | 2019-07-29 23:19:44 +0200 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2019-07-29 23:23:18 +0200 |
commit | 62d3f5057f2ed0c8646839f38dbe29adf4601502 (patch) | |
tree | e34432558be517cf9de4bdaf594b192306763ff5 /test | |
parent | 74ea1f3b0f268b0272f8b3548c736dc60f442f78 (diff) |
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.
Diffstat (limited to 'test')
-rwxr-xr-x | test/functional/feature_dbcrash.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/feature_dbcrash.py b/test/functional/feature_dbcrash.py index 62062926a6..f227a06ebe 100755 --- a/test/functional/feature_dbcrash.py +++ b/test/functional/feature_dbcrash.py @@ -267,7 +267,7 @@ class ChainstateWriteCrashTest(BitcoinTestFramework): # 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() |