mirror of
				https://gitlab.com/gpvkt/twitchtts.git
				synced 2025-10-31 00:57:35 +01:00 
			
		
		
		
	Added log filehandler
This commit is contained in:
		
							parent
							
								
									a5cd6ae86d
								
							
						
					
					
						commit
						a21163f5e5
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		
							
								
								
									
										7
									
								
								tts.py
									
										
									
									
									
								
							
							
						
						
									
										7
									
								
								tts.py
									
										
									
									
									
								
							|  | @ -1619,6 +1619,13 @@ if __name__ == "__main__": | |||
|         level=logging.DEBUG, | ||||
|         format='%(asctime)s %(module)s %(threadName)s %(levelname)s: %(message)s' | ||||
|     ) | ||||
| 
 | ||||
|     file_handler = logging.FileHandler('tts.log') | ||||
|     file_handler.setLevel(logging.ERROR) | ||||
|     file_handler.setFormatter(formatter) | ||||
| 
 | ||||
|     logger.addHandler(file_handler) | ||||
| 
 | ||||
|     sys.tracebacklimit = 3 | ||||
| 
 | ||||
|     VERSION = "1.7.1" | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue