Commits

Tetsuya Morimoto committed f1dc896

removed unneeded debug log

Comments (0)

Files changed (2)

         links = None
         desc_refs = get_refs_in_comment(ticket["description"])
         if desc_refs:
-            self.log.debug("TicketRefsPlugin: refs in description %s" % (
-                           str(desc_refs)))
             ticket[TICKETREF] = cnv_sorted_refs(ticket[TICKETREF], desc_refs)
             links = TicketLinks(self.env, ticket)
             links.add_reference(desc_refs)
 
         if self.has_ticket_refs(ticket):
-            self.log.debug("TicketRefsPlugin: ticket are creating")
             if not links:
                 links = TicketLinks(self.env, ticket)
             try:
                 links.create()
             except Exception, err:
                 self.log.error("TicketRefsPlugin: ticket_created %s" % err)
-            self.log.debug("TicketRefsPlugin: ticket are created")
 
     def ticket_changed(self, ticket, comment, author, old_values):
         links = None
 
         com_refs = get_refs_in_comment(comment, [ticket.id])
         if com_refs:
-            self.log.debug("TicketRefsPlugin: refs in comment %s" % (
-                           str(com_refs)))
             links = TicketLinks(self.env, ticket)
             links.add_reference(com_refs)
             need_change = True
 
         if need_change:
-            self.log.debug("TicketRefsPlugin: ticket are changing")
             if not links:
                 links = TicketLinks(self.env, ticket)
             try:
                 links.change(author, old_values.get(TICKETREF))
             except Exception, err:
                 self.log.error("TicketRefsPlugin: ticket_changed %s" % err)
-            self.log.debug("TicketRefsPlugin: ticket are changed")
 
     def ticket_deleted(self, ticket):
         if self.has_ticket_refs(ticket):
-            self.log.debug("TicketRefsPlugin: ticket are deleting")
             links = TicketLinks(self.env, ticket)
             try:
                 links.delete()
             except Exception, err:
                 self.log.error("TicketRefsPlugin: ticket_deleted %s" % err)
-            self.log.debug("TicketRefsPlugin: ticket are deleted")
 
     # ITicketManipulator methods
     def prepare_ticket(self, req, ticket, fields, actions):

ticketref/web_ui.py

 
     # ITemplateStreamFilter methods
     def filter_stream(self, req, method, filename, stream, data):
-        self.log.debug("TicketRefsTemplate: filter_stream start")
         if not data or (not filename in TEMPLATE_FILES):
             return stream
 
         if "row_groups" in data and isinstance(data["row_groups"], list):
             self._filter_row_groups(req, data)
 
-        self.log.debug("TicketRefsTemplate: filter_stream end")
         return stream
 
     def _filter_fields(self, req, data):
         return handler
 
     def post_process_request(self, req, template, data, content_type):
-        self.log.debug("TicketRefsTemplate: post_process_request, %s, %s" % (
-                       req.path_info, template))
         if req.path_info.startswith("/ticket/"):
             add_stylesheet(req, "ticketref/ticket.css")
             add_script(req, "ticketref/ticket.js")