Skip to content

Commit

Permalink
added colored threat id for interp
Browse files Browse the repository at this point in the history
  • Loading branch information
k4yt3x committed Feb 28, 2022
1 parent 2bfcb13 commit 6e72df6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions video2x/interpolator.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ def __init__(

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:
Expand Down Expand Up @@ -112,7 +114,9 @@ def run(self) -> None:
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:
Expand Down

0 comments on commit 6e72df6

Please sign in to comment.