Fixed logging-related test failure introduced by e79b857.
Merge pull request #968 from jacobian/fix-warning-log-regression

Fixed logging-related test failure introduced by e79b857.