Adding some logging that shows what triggered the screenshot, and how long it took.