b7d2fb5eb9 
								
									
								
							
								 
							
						 
						
							
							
								
								Remove some superfluous logging ( #3855 )  
							
							
							
						 
						
							2018-09-13 19:59:32 +10:00  
				
					
						
							
							
								 
						
							
							
								324525f40c 
								
									
								
							
								 
							
						 
						
							
							
								
								Port over enough to get some sytests running on Python 3 ( #3668 )  
							
							
							
						 
						
							2018-08-20 23:54:49 +10:00  
				
					
						
							
							
								 
						
							
							
								c08f9d95b2 
								
							
								 
							
						 
						
							
							
								
								log *after* reloading log config  
							
							... 
							
							
							
							... because logging *before* reloading means the log message gets lost in the old MemoryLogger 
							
						 
						
							2018-08-10 14:56:48 +01:00  
				
					
						
							
							
								 
						
							
							
								49af402019 
								
							
								 
							
						 
						
							
							
								
								run isort  
							
							
							
						 
						
							2018-07-09 16:09:20 +10:00  
				
					
						
							
							
								 
						
							
							
								245d53d32a 
								
							
								 
							
						 
						
							
							
								
								Write a clear restart indicator in logs  
							
							... 
							
							
							
							I'm fed up with never being able to find the point a server restarted in the
logs. 
							
						 
						
							2018-06-20 15:33:14 +01:00  
				
					
						
							
							
								 
						
							
							
								a376d8f761 
								
							
								 
							
						 
						
							
							
								
								open log_config in text mode too  
							
							... 
							
							
							
							Signed-off-by: Adrian Tschira <nota@notafile.com> 
							
						 
						
							2018-04-28 13:34:13 +02:00  
				
					
						
							
							
								 
						
							
							
								cb66a2d387 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #2763  from matrix-org/rav/fix_config_uts  
							
							... 
							
							
							
							Fix broken config UTs 
							
						 
						
							2018-01-09 12:08:08 +00:00  
				
					
						
							
							
								 
						
							
							
								0211464ba2 
								
							
								 
							
						 
						
							
							
								
								Fix broken config UTs  
							
							... 
							
							
							
							https://github.com/matrix-org/synapse/pull/2755  broke log-config generation,
which in turn broke the unit tests. 
						
							2018-01-09 11:28:33 +00:00  
				
					
						
							
							
								 
						
							
							
								3a556f1ea0 
								
							
								 
							
						 
						
							
							
								
								Make indentation of generated log config consistent  
							
							... 
							
							
							
							(we had a mix of 2- and 4-space indents) 
							
						 
						
							2018-01-09 11:27:19 +00:00  
				
					
						
							
							
								 
						
							
							
								840f72356e 
								
									
								
							
								 
							
						 
						
							
							
								
								Remove 'verbosity'/'log_file' from generated cfg  
							
							... 
							
							
							
							... because these only really exist to confuse people nowadays.
Also bring log config more into line with the generated log config, by making `level_for_storage`
apply to the `synapse.storage.SQL` logger rather than `synapse.storage`. 
							
						 
						
							2018-01-05 12:30:28 +00:00  
				
					
						
							
							
								 
						
							
							
								f7f90e0c8d 
								
							
								 
							
						 
						
							
							
								
								Fix error when running synapse with no logfile  
							
							... 
							
							
							
							Fixes 'UnboundLocalError: local variable 'sighup' referenced before assignment' 
							
						 
						
							2017-10-26 16:45:20 +01:00  
				
					
						
							
							
								 
						
							
							
								6037a9804c 
								
							
								 
							
						 
						
							
							
								
								Add helpful texts to logger config options  
							
							
							
						 
						
							2017-03-13 12:33:35 +00:00  
				
					
						
							
							
								 
						
							
							
								6bfe8e32b5 
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #1983  from matrix-org/rav/no_redirect_stdio  
							
							... 
							
							
							
							Add an option to disable stdio redirect 
							
						 
						
							2017-03-13 12:20:07 +00:00  
				
					
						
							
							
								 
						
							
							
								bcfa5cd00c 
								
							
								 
							
						 
						
							
							
								
								Add an option to disable stdio redirect  
							
							... 
							
							
							
							This makes it tractable to run synapse under pdb. 
							
						 
						
							2017-03-10 15:38:29 +00:00  
				
					
						
							
							
								 
						
							
							
								d84bd51e95 
								
							
								 
							
						 
						
							
							
								
								Refactor logger config for workers  
							
							... 
							
							
							
							- to make it easier to add more config options. 
							
						 
						
							2017-03-10 15:34:01 +00:00  
				
					
						
							
							
								 
						
							
							
								9072a8c627 
								
							
								 
							
						 
						
							
							
								
								Reread log config on SIGHUP  
							
							... 
							
							
							
							When we are using a log_config file, reread it on SIGHUP. 
							
						 
						
							2017-03-10 15:29:55 +00:00  
				
					
						
							
							
								 
						
							
							
								bf5c9706d9 
								
							
								 
							
						 
						
							
							
								
								Remove full_twisted_stacktraces option  
							
							... 
							
							
							
							The debug 'full_twisted_stacktraces' flag caused synapse to rewrite
twisted deferreds to always fire the callback on the next reactor tick.
This was to force the deferred to always store the stacktraces on
exceptions, and thus be more likely to have a full stacktrace when it
reaches the final error handlers and gets printed to the logs.
Dynamically rewriting things is generally bad, and in particular this
change violates assumptions of various bits of Twisted. This wouldn't
necessarily be so bad, but it turns out this option has been turned on
on some production servers.
Turning the option can cause e.g. #1778 .
For now, lets just entirely nuke this option. 
							
						 
						
							2017-01-12 10:32:52 +00:00  
				
					
						
							
							
								 
						
							
							
								822cb39dfa 
								
							
								 
							
						 
						
							
							
								
								Use the new twisted logging framework.  
							
							... 
							
							
							
							Hopefully adding an observer to the new framework will avoid a memory
leak https://twistedmatrix.com/trac/ticket/8164  
							
						 
						
							2016-12-30 11:09:24 +00:00  
				
					
						
							
							
								 
						
							
							
								c46e7a9c9b 
								
							
								 
							
						 
						
							
							
								
								Bugfix: Console logging handler missing default filter  
							
							
							
						 
						
							2016-12-03 20:14:58 -03:00  
				
					
						
							
							
								 
						
							
							
								885ee861f7 
								
							
								 
							
						 
						
							
							
								
								Inline the synchrotron and pusher configs into the main config  
							
							
							
						 
						
							2016-06-16 11:06:12 +01:00  
				
					
						
							
							
								 
						
							
							
								6c28ac260c 
								
							
								 
							
						 
						
							
							
								
								copyrights  
							
							
							
						 
						
							2016-01-07 04:26:29 +00:00  
				
					
						
							
							
								 
						
							
							
								9020860479 
								
							
								 
							
						 
						
							
							
								
								Only turn on the twisted deferred debugging if full_twisted_stacktraces is set in the config  
							
							
							
						 
						
							2015-10-13 17:50:44 +01:00  
				
					
						
							
							
								 
						
							
							
								7213588083 
								
							
								 
							
						 
						
							
							
								
								Implement configurable stats reporting  
							
							... 
							
							
							
							SYN-287
This requires that HS owners either opt in or out of stats reporting.
When --generate-config is passed, --report-stats must be specified
If an already-generated config is used, and doesn't have the
report_stats key, it is requested to be set. 
							
						 
						
							2015-09-22 12:57:40 +01:00  
				
					
						
							
							
								 
						
							
							
								9cd5b9a802 
								
							
								 
							
						 
						
							
							
								
								Hacky attempt at catching SIGHUP and rotating the logfile around  
							
							
							
						 
						
							2015-09-14 19:03:53 +01:00  
				
					
						
							
							
								 
						
							
							
								2f1348f339 
								
							
								 
							
						 
						
							
							
								
								Write a default log_config when generating config  
							
							
							
						 
						
							2015-04-30 16:52:57 +01:00  
				
					
						
							
							
								 
						
							
							
								d624e2a638 
								
							
								 
							
						 
						
							
							
								
								Manually generate the default config yaml, remove most of the commandline arguments for synapse anticipating that people will use the yaml instead. Simpify implementing config options by not requiring the classes to hit the super class  
							
							
							
						 
						
							2015-04-30 04:24:44 +01:00  
				
					
						
							
							
								 
						
							
							
								f4c9ebbc34 
								
							
								 
							
						 
						
							
							
								
								Delete ugly commented out log line.  
							
							
							
						 
						
							2015-04-29 11:07:13 +01:00  
				
					
						
							
							
								 
						
							
							
								68c0603946 
								
							
								 
							
						 
						
							
							
								
								comment out ugly test logline  
							
							
							
						 
						
							2015-04-29 00:14:44 +01:00  
				
					
						
							
							
								 
						
							
							
								f91345bdb5 
								
							
								 
							
						 
						
							
							
								
								yaml.load expects strings to be a yaml rather than  file  
							
							
							
						 
						
							2015-02-10 13:57:31 +00:00  
				
					
						
							
							
								 
						
							
							
								30595b466f 
								
							
								 
							
						 
						
							
							
								
								Use yaml logging config format because it is much nicer  
							
							
							
						 
						
							2015-02-10 13:50:33 +00:00  
				
					
						
							
							
								 
						
							
							
								9d0dcf2e3c 
								
							
								 
							
						 
						
							
							
								
								SYN-142: Rotate logs if logging to file. Fixed to a 4 file rotate with 100MB/file for now.  
							
							
							
						 
						
							2015-01-08 15:31:29 +00:00  
				
					
						
							
							
								 
						
							
							
								adb04b1e57 
								
							
								 
							
						 
						
							
							
								
								Update copyright notices  
							
							
							
						 
						
							2015-01-06 13:21:39 +00:00  
				
					
						
							
							
								 
						
							
							
								4dcad143dd 
								
							
								 
							
						 
						
							
							
								
								SYN-142: Use a default log file 'homeserver.log' so people get logging by default.  
							
							
							
						 
						
							2014-12-16 17:24:49 +00:00  
				
					
						
							
							
								 
						
							
							
								66b0596b7a 
								
							
								 
							
						 
						
							
							
								
								Don't log synapse.storage at DEBUG level when under -v; require -v -v for that  
							
							
							
						 
						
							2014-12-02 22:28:18 +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  
				
					
						
							
							
								 
						
							
							
								8a7c1d6a00 
								
							
								 
							
						 
						
							
							
								
								fix the copyright holder from matrix.org to OpenMarket Ltd, as matrix.org hasn't been incorporated in time for launch.  
							
							
							
						 
						
							2014-09-03 17:31:57 +01:00  
				
					
						
							
							
								 
						
							
							
								9ea1de432d 
								
							
								 
							
						 
						
							
							
								
								Fix homeserver config parsing  
							
							
							
						 
						
							2014-09-01 15:51:15 +01:00  
				
					
						
							
							
								 
						
							
							
								d9ebe531ed 
								
							
								 
							
						 
						
							
							
								
								Add config tree to synapse. Add support for reading config from a file  
							
							
							
						 
						
							2014-08-31 16:06:39 +01:00