mirror of
				https://github.com/k4yt3x/video2x.git
				synced 2025-10-31 12:50:59 +01:00 
			
		
		
		
	added colored threat id for interp
This commit is contained in:
		
							parent
							
								
									2bfcb13976
								
							
						
					
					
						commit
						6e72df66fc
					
				| @ -56,7 +56,9 @@ class Interpolator(multiprocessing.Process): | |||||||
| 
 | 
 | ||||||
|     def run(self) -> None: |     def run(self) -> None: | ||||||
|         self.running = True |         self.running = True | ||||||
|         logger.info(f"Interpolator process {self.name} initiating") |         logger.opt(colors=True).info( | ||||||
|  |             f"Interpolator process <blue>{self.name}</blue> initiating" | ||||||
|  |         ) | ||||||
|         processor_objects = {} |         processor_objects = {} | ||||||
|         while self.running: |         while self.running: | ||||||
|             try: |             try: | ||||||
| @ -112,7 +114,9 @@ class Interpolator(multiprocessing.Process): | |||||||
|                 logger.exception(e) |                 logger.exception(e) | ||||||
|                 break |                 break | ||||||
| 
 | 
 | ||||||
|         logger.info(f"Interpolator process {self.name} terminating") |         logger.opt(colors=True).info( | ||||||
|  |             f"Interpolator process <blue>{self.name}</blue> terminating" | ||||||
|  |         ) | ||||||
|         return super().run() |         return super().run() | ||||||
| 
 | 
 | ||||||
|     def _stop(self, _signal_number, _frame) -> None: |     def _stop(self, _signal_number, _frame) -> None: | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user