HomePhabricator

qa: fix deprecated log.warn in feature_dbcrash test

Description

qa: fix deprecated log.warn in feature_dbcrash test

Summary:

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.

Backport of core PR16491:
https://github.com/bitcoin/bitcoin/pull/16491/files

Test Plan:

./test/functional/test_runner.py feature_dbcrash

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D4564

Details

Provenance
Jon Atack <jon@atack.com>Authored on Jul 29 2019, 21:19
FabienCommitted on Nov 27 2019, 20:12
FabienPushed on Nov 27 2019, 20:12
Reviewer
Restricted Project
Differential Revision
D4564: qa: fix deprecated log.warn in feature_dbcrash test
Parents
rABCfb1f88688d92: [tests] fix block time in feature_pruning.py
Branches
Unknown
Tags
Unknown