This broke recently and we didn't notice (#2351). Would be good to have a smoke test to verify debug logging works.