Skip to content

Commit

Permalink
chore: add datetime at the start of all prints into console
Browse files Browse the repository at this point in the history
  • Loading branch information
grdddj committed Dec 3, 2024
1 parent 9c4fb95 commit bc4d202
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/helpers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import logging
import os
from datetime import datetime
from pathlib import Path

from termcolor import colored # type: ignore
Expand Down Expand Up @@ -27,7 +28,8 @@

def log(text: str, color: str = "blue") -> None:
logging.info(text)
print(colored(text, color))
now = datetime.now().strftime("%Y-%m-%d %H:%M:%S:%f")
print(colored(f"{now} - {text}", color))


def physical_trezor() -> bool:
Expand Down

0 comments on commit bc4d202

Please sign in to comment.