[tahoe-lafs-trac-stream] [Tahoe-LAFS] #1927: cloud backend spams twistd.log with two entries for each HTTP connection

Tahoe-LAFS trac at tahoe-lafs.org
Tue Sep 20 13:49:27 UTC 2016


#1927: cloud backend spams twistd.log with two entries for each HTTP connection
--------------------------+------------------------------------------------
     Reporter:            |      Owner:  daira
  davidsarah              |
         Type:  defect    |     Status:  assigned
     Priority:  normal    |  Milestone:  soon
    Component:  code-     |    Version:  cloud-branch
  storage                 |
   Resolution:            |   Keywords:  twisted http logging cloud-backend
Launchpad Bug:            |
--------------------------+------------------------------------------------

Comment (by daira):

 It needs to be like this:
 {{{
 def make_query(*args, **kwargs):
     if usertoken is not None:
         amz_headers = kwargs.get("amz_headers", {})
         if producttoken is not None:
             amz_headers["security-token"] = (usertoken, producttoken)
         else:
             amz_headers["security-token"] = usertoken
         kwargs["amz_headers"] = amz_headers

     query = Query(*args, **kwargs)
     if hasattr(query.factory, 'noisy'):
         query.factory.noisy = False
     return query

 query_factory = make_query
 }}}

--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1927#comment:6>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list