Add some logging for scheduled tasks.