Page MenuHomePhabricator

qa: fix deprecated log.warn in feature_dbcrash test
ClosedPublic

Authored by Fabien on Wed, Nov 27, 15:20.

Details

Reviewers
deadalnix
Group Reviewers
Restricted Project
Commits
rABCb43efcf3fa96: 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

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Fabien created this revision.Wed, Nov 27, 15:20
Herald added a reviewer: Restricted Project. · View Herald TranscriptWed, Nov 27, 15:20
deadalnix accepted this revision.Wed, Nov 27, 16:49
This revision is now accepted and ready to land.Wed, Nov 27, 16:49
This revision was automatically updated to reflect the committed changes.