mirror of
https://github.com/k4yt3x/video2x.git
synced 2024-12-27 14:39:09 +00: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:
|
||||
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 = {}
|
||||
while self.running:
|
||||
try:
|
||||
@ -112,7 +114,9 @@ class Interpolator(multiprocessing.Process):
|
||||
logger.exception(e)
|
||||
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()
|
||||
|
||||
def _stop(self, _signal_number, _frame) -> None:
|
||||
|
Loading…
Reference in New Issue
Block a user