Tweak the logging and debugging recipe. Fixes #1602.