Skip to content

Commit

Permalink
Removed extra space in debug, question and info
Browse files Browse the repository at this point in the history
  • Loading branch information
sexfrance committed Oct 27, 2024
1 parent 62aff74 commit b170d8a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions logmagix/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,16 @@ def message2(self, level: str, message: str, start: int = None, end: int = None)

def question(self, message: str, start: int = None, end: int = None) -> None:
time = self.get_time()
i = input(f"{self.prefix}[{self.MAGENTAA}{time}{self.PINK}] {Fore.RESET} {self.PINK}[{Fore.BLUE}?{self.PINK}] -> {Fore.RESET} {self.CYAN}{message}{Fore.RESET}")
i = input(f"{self.prefix}[{self.MAGENTAA}{time}{self.PINK}]{Fore.RESET} {self.PINK}[{Fore.BLUE}?{self.PINK}] -> {Fore.RESET} {self.CYAN}{message}{Fore.RESET}")
return i

def info(self, message: str, start: int = None, end: int = None) -> None:
time = self.get_time()
print(f"{self.prefix}[{self.MAGENTAA}{time}{self.PINK}] {Fore.RESET} {self.PINK}[{Fore.BLUE}!{self.PINK}] -> {Fore.RESET} {self.CYAN}{message}{Fore.RESET}")
print(f"{self.prefix}[{self.MAGENTAA}{time}{self.PINK}]{Fore.RESET} {self.PINK}[{Fore.BLUE}!{self.PINK}] -> {Fore.RESET} {self.CYAN}{message}{Fore.RESET}")

def debug(self, message: str, start: int = None, end: int = None) -> None:
time = self.get_time()
print(f"{self.prefix}[{self.MAGENTAA}{time}{self.PINK}] {Fore.RESET} {self.PINK}[{Fore.YELLOW}DEBUG{self.PINK}] -> {Fore.RESET} {self.GREEN}{message}{Fore.RESET}")
print(f"{self.prefix}[{self.MAGENTAA}{time}{self.PINK}]{Fore.RESET} {self.PINK}[{Fore.YELLOW}DEBUG{self.PINK}] -> {Fore.RESET} {self.GREEN}{message}{Fore.RESET}")

log = Logger()

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.8",
version="1.0.9",
packages=find_packages(),
install_requires=["colorama"],
author="Sexfrance",
Expand Down

0 comments on commit b170d8a

Please sign in to comment.