Added logging in the console when running scheduled tasks
bug #5300 Prevent email reports from being sent twice for the same period