mirror of
				https://github.com/KevinMidboe/transatlanticTorrentExpress.git
				synced 2025-10-29 18:00:19 +00:00 
			
		
		
		
	Files list should be logged as string
This commit is contained in:
		| @@ -59,6 +59,10 @@ class ESHandler(logging.Handler): | ||||
|     } | ||||
|  | ||||
|     if hasattr(record, 'es'): | ||||
|       for key in record.es.keys(): | ||||
|         if key == 'files': | ||||
|           record.es[key] = [ file.__repr__() for file in record.es[key] ] | ||||
|  | ||||
|       for param in record.es.values(): | ||||
|         if ': {}'.format(param) in record.message: | ||||
|           doc['message'] = record.message.replace(': {}'.format(str(param)), '') | ||||
|   | ||||
		Reference in New Issue
	
	Block a user