added colored threat id for interp

This commit is contained in:
k4yt3x 2022-02-28 06:56:16 +00:00
parent 2bfcb13976
commit 6e72df66fc

View File

@ -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: