Fix result set debug logging, broken by the previous commit

Here's the fixed version. Let's see if the PR build runs and succeeds...