e2eebf1696 
								
							
								 
							
						 
						
							
							
								
								Fix fixme in preserve_fn  
							
							... 
							
							
							
							`preserve_fn` is no longer used as a decorator anywhere, so we can safely fix a
fixme therein. 
							
						 
						
							2017-04-03 15:38:02 +01:00  
				
					
						
							
							
								 
						
							
							
								f9b4bb05e0 
								
							
								 
							
						 
						
							
							
								
								Fix the logcontext handling in the cache wrappers ( #2077 )  
							
							... 
							
							
							
							The cache wrappers had a habit of leaking the logcontext into the reactor while
the lookup function was running, and then not restoring it correctly when the
lookup function had completed. It's all the fault of
`preserve_context_over_{fn,deferred}` which are basically a bit broken. 
							
						 
						
							2017-03-30 13:22:24 +01:00  
				
					
						
							
							
								 
						
							
							
								bd08ee7a46 
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #2026  from matrix-org/rav/logcontext_docs  
							
							... 
							
							
							
							Logcontext docs 
							
						 
						
							2017-03-20 12:05:21 +00:00  
				
					
						
							
							
								 
						
							
							
								f40c2db05a 
								
							
								 
							
						 
						
							
							
								
								Stop preserve_fn leaking context into the reactor  
							
							... 
							
							
							
							Fix a bug in ``logcontext.preserve_fn`` which made it leak context into the
reactor, and add a test for it.
Also, get rid of ``logcontext.reset_context_after_deferred``, which tried to do
the same thing but had its own, different, set of bugs. 
							
						 
						
							2017-03-18 00:07:43 +00:00  
				
					
						
							
							
								 
						
							
							
								d2d146a314 
								
							
								 
							
						 
						
							
							
								
								Logcontext docs  
							
							
							
						 
						
							2017-03-17 23:59:28 +00:00  
				
					
						
							
							
								 
						
							
							
								b5d1c68beb 
								
							
								 
							
						 
						
							
							
								
								Implement reset_context_after_deferred  
							
							... 
							
							
							
							to correctly reset the context when we fire off a deferred we aren't going to
wait for. 
							
						 
						
							2017-03-15 02:21:07 +00:00  
				
					
						
							
							
								 
						
							
							
								9219139351 
								
							
								 
							
						 
						
							
							
								
								Preserve some logcontexts  
							
							
							
						 
						
							2016-08-24 11:58:40 +01:00  
				
					
						
							
							
								 
						
							
							
								ca8abfbf30 
								
							
								 
							
						 
						
							
							
								
								Clean up TransactionQueue  
							
							
							
						 
						
							2016-08-10 16:24:16 +01:00  
				
					
						
							
							
								 
						
							
							
								4eb8f9ca8a 
								
							
								 
							
						 
						
							
							
								
								Remove comment  
							
							
							
						 
						
							2016-02-10 11:29:21 +00:00  
				
					
						
							
							
								 
						
							
							
								00c9ad49df 
								
							
								 
							
						 
						
							
							
								
								s/parent_context/previous_context/  
							
							
							
						 
						
							2016-02-10 11:25:19 +00:00  
				
					
						
							
							
								 
						
							
							
								9777c5f49a 
								
							
								 
							
						 
						
							
							
								
								Set parent context on instansiation  
							
							
							
						 
						
							2016-02-10 11:23:32 +00:00  
				
					
						
							
							
								 
						
							
							
								3e2fcd67b2 
								
							
								 
							
						 
						
							
							
								
								Don't bother copying records on parent context  
							
							
							
						 
						
							2016-02-09 10:50:31 +00:00  
				
					
						
							
							
								 
						
							
							
								c486b7b41c 
								
							
								 
							
						 
						
							
							
								
								Change logcontext warns to debug  
							
							
							
						 
						
							2016-02-09 09:20:38 +00:00  
				
					
						
							
							
								 
						
							
							
								2c1fbea531 
								
							
								 
							
						 
						
							
							
								
								Fix up logcontexts  
							
							
							
						 
						
							2016-02-08 14:26:45 +00:00  
				
					
						
							
							
								 
						
							
							
								d4f72a5bfb 
								
							
								 
							
						 
						
							
							
								
								Allowing tagging log contexts  
							
							
							
						 
						
							2016-02-03 13:52:27 +00:00  
				
					
						
							
							
								 
						
							
							
								6c28ac260c 
								
							
								 
							
						 
						
							
							
								
								copyrights  
							
							
							
						 
						
							2016-01-07 04:26:29 +00:00  
				
					
						
							
							
								 
						
							
							
								6a5ff5f223 
								
							
								 
							
						 
						
							
							
								
								Track the time spent in the database per request.  
							
							... 
							
							
							
							and track the number of transactions that request started. 
							
						 
						
							2015-12-07 17:56:11 +00:00  
				
					
						
							
							
								 
						
							
							
								3dd1630848 
								
							
								 
							
						 
						
							
							
								
								Add a setter for the current log context.  
							
							... 
							
							
							
							Move the resource tracking inside that setter so that it is easier
to make sure that the resource tracking isn't double counting the
resource usage. 
							
						 
						
							2015-12-07 10:51:18 +00:00  
				
					
						
							
							
								 
						
							
							
								5231737369 
								
							
								 
							
						 
						
							
							
								
								Add comments to explain why we are hardcoding RUSAGE_THREAD  
							
							
							
						 
						
							2015-12-04 11:53:38 +00:00  
				
					
						
							
							
								 
						
							
							
								d6059bdd2a 
								
							
								 
							
						 
						
							
							
								
								Fix warnings  
							
							
							
						 
						
							2015-12-04 11:34:23 +00:00  
				
					
						
							
							
								 
						
							
							
								48a2526d62 
								
							
								 
							
						 
						
							
							
								
								Track the cpu used in the main thread by each logging context  
							
							
							
						 
						
							2015-12-03 21:03:01 +00:00  
				
					
						
							
							
								 
						
							
							
								653533a3da 
								
							
								 
							
						 
						
							
							
								
								Fix log context when sending requests  
							
							
							
						 
						
							2015-06-19 11:46:49 +01:00  
				
					
						
							
							
								 
						
							
							
								2236ef6c92 
								
							
								 
							
						 
						
							
							
								
								Fix up leak. Add warnings.  
							
							
							
						 
						
							2015-05-08 19:53:34 +01:00  
				
					
						
							
							
								 
						
							
							
								da1aa07db5 
								
							
								 
							
						 
						
							
							
								
								Add some docs  
							
							
							
						 
						
							2015-05-08 16:52:49 +01:00  
				
					
						
							
							
								 
						
							
							
								476899295f 
								
							
								 
							
						 
						
							
							
								
								Change the way we do logging contexts so that they survive divergences  
							
							
							
						 
						
							2015-05-08 16:32:18 +01:00  
				
					
						
							
							
								 
						
							
							
								adb04b1e57 
								
							
								 
							
						 
						
							
							
								
								Update copyright notices  
							
							
							
						 
						
							2015-01-06 13:21:39 +00:00  
				
					
						
							
							
								 
						
							
							
								15099fade5 
								
							
								 
							
						 
						
							
							
								
								Drop log level for incorrect logging contexts to WARN if the context is wrong and DEBUG if the context is missing  
							
							
							
						 
						
							2014-11-25 10:57:31 +00:00  
				
					
						
							
							
								 
						
							
							
								dfdda2c871 
								
							
								 
							
						 
						
							
							
								
								Use module loggers rather than the root logger. Exceptions caused by bad clients shouldn't cause ERROR level logging. Fix sql logging to use 'repr' rather than 'str'  
							
							
							
						 
						
							2014-11-20 17:10:37 +00:00  
				
					
						
							
							
								 
						
							
							
								97c7c34f6f 
								
							
								 
							
						 
						
							
							
								
								Preserve logging context in a few more places, drop the logging context after it has been stashed to reduce potential for confusion  
							
							
							
						 
						
							2014-11-19 16:37:43 +00:00  
				
					
						
							
							
								 
						
							
							
								fa955cc2a4 
								
							
								 
							
						 
						
							
							
								
								Pep8 and a few doc strings  
							
							
							
						 
						
							2014-10-30 10:13:46 +00:00  
				
					
						
							
							
								 
						
							
							
								b29517bd01 
								
							
								 
							
						 
						
							
							
								
								Add a request-id to each log line  
							
							
							
						 
						
							2014-10-30 01:21:33 +00:00