   try
     if lock.tryLock 10000
       # wait 10 seconds at most
-      Logger.log 'We have the lock...'
+      MailButler.log 'We have the lock...'
       try
         if MailButler.isEnabled()
               # Get the time this scheduled execution started


        else
          # There was an answer on this thread
          Logger.log "The message has been answered to already..."

          # Set the status
          props.status = ProcessingStatus.ANSWERED

      else
        # does not have the outbox label
        Logger.log "Label '%s' has been removed from the mail, not processing it", @LABEL_OUTBOX

        # Set the status
        props.status = ProcessingStatus.OUTBOX_LABEL_REMOVED
    
      Logger.log "Finished processing message with ID '%s'", messageId

    # update the scheduled butler mail, because we couldn't find the real message
    props.processed = time

        messageId = form.msgId ? form.messageId

        if not messageId or not (message = GmailApp.getMessageById messageId)
          MailButler.log "Given message ID '#{messageId}' is not valid"
          throw new Error ErrorCodes.INVALID_MESSAGE_ID,
            email:      encodeURIComponent user
            messageId:  messageId

        unless form.when
          MailButler.log 'No scheduling time given'
          throw new Error ErrorCodes.NO_SCHEDULE_TIME

        unless (w = MailButler.parseTime form.when, now)
          MailButler.log "Given scheduling time '#{form.when}' is not valid"
          throw new Error ErrorCodes.INVALID_SCHEDULE_TIME, {time: form.when}

        props =
