In SchedulerActor.scala,
def sendMessage() {
val now = System.currentTimeMillis
val dateString = TimeHelpers.toInternetDate(now)
Message.create.author(user).
when(now).
source("every").
setTextAndTags("Regularly scheduled action: " + dateString, Nil, Empty).
foreach{ msg =>
// Noisy & can't be rejected
// if (msg.save) {
messageProcessor ! Distributor.AddMessageToMailbox(user, msg, reason)
// }
}
Stats incr "schedulerMessagesCreated"
Stats incr "messagesCreated"
Stats incr "schedulerMessagesCreated"
Stats incr "messagesCreated"
}
I believe, the following lines should occur only once, they are repeated ?
Stats incr "schedulerMessagesCreated"
Stats incr "messagesCreated"
Imtiaz