Improved logging on server.
This commit is contained in:
		
							
								
								
									
										2
									
								
								morss.py
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								morss.py
									
									
									
									
									
								
							@@ -50,7 +50,7 @@ def log(txt):
 | 
				
			|||||||
		print txt
 | 
							print txt
 | 
				
			||||||
	if SERVER:
 | 
						if SERVER:
 | 
				
			||||||
		with open('morss.log', 'a') as file:
 | 
							with open('morss.log', 'a') as file:
 | 
				
			||||||
			file.write(str(txt).encode('utf-8') + "\n")
 | 
								file.write(repr(txt).encode('utf-8') + "\n")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def cleanXML(xml):
 | 
					def cleanXML(xml):
 | 
				
			||||||
	table = string.maketrans('', '')
 | 
						table = string.maketrans('', '')
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user