*8996* Porting stats fixes

To shorten the addExecutionLogEntry calls it could be nice to add wrapper functions:

addExecutionLogError
addExecutionLogNotice

That way you don't have  SCHEDULED_TASK_MESSAGE_TYPE constants all over the place. Just a suggestion though/