Skip to content

Commit

Permalink
Added fore.reset after message if there is start and end time
Browse files Browse the repository at this point in the history
  • Loading branch information
sexfrance committed Oct 28, 2024
1 parent b170d8a commit 633a440
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion logmagix/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def warning(self, message: str, start: int = None, end: int = None, level: str =

def message(self, level: str, message: str, start: int = None, end: int = None) -> None:
time = self.get_time()
timer = f" {self.MAGENTAA}In{self.WHITE} -> {self.MAGENTAA}{str(end - start)[:5]} Seconds" if start and end else ""
timer = f" {self.MAGENTAA}In{self.WHITE} -> {self.MAGENTAA}{str(end - start)[:5]} Seconds {Fore.RESET}" if start and end else ""
print(f"{self.prefix}[{self.MAGENTAA}{time}{self.PINK}] [{self.CYAN}{level}{self.PINK}] -> [{self.CYAN}{message}{self.PINK}]{timer}")

def message2(self, level: str, message: str, start: int = None, end: int = None) -> None:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="logmagix",
version="1.0.9",
version="1.10.0",
packages=find_packages(),
install_requires=["colorama"],
author="Sexfrance",
Expand Down

0 comments on commit 633a440

Please sign in to comment.