PatchLogs are not getting created on QueueStatusServer
[WebKit-https.git] / Tools / QueueStatusServer / handlers / submittoews.py
index 248bce4a12455c79cb4e07a08b0d9b5243f329e0..f7669d233bb253cad11010181e5e4294c8ccd9ba 100644 (file)
@@ -30,6 +30,7 @@ from google.appengine.ext import webapp, db
 from google.appengine.ext.webapp import template
 
 from handlers.updatebase import UpdateBase
+from loggers.recordpatchevent import RecordPatchEvent
 from model.attachment import Attachment
 from model.queues import Queue
 
@@ -57,6 +58,7 @@ class SubmitToEWS(UpdateBase):
         for queue in Queue.all_ews():  # all_ews() currently includes the style-queue
             if self._should_add_to_ews_queue(queue, attachment):
                 queue.work_items().add_work_item(attachment.id)
+                RecordPatchEvent.added(attachment.id, queue.name())
 
     def post(self):
         attachment_id = self._int_from_request("attachment_id")