[2.1] Print logs from flaky test shouldUpgradeDatabase().
Merge pull request #2997 from martinfurmanski/2.1-should-upgrade-flaky

[2.1] Print logs from flaky test shouldUpgradeDatabase().