flare / utils.py
ciyidogan's picture
Update utils.py
a464f90 verified
raw
history blame
239 Bytes
import json
import sys
from datetime import datetime
CONFIG_FILE = "service_config.json"
def log(message: str):
timestamp = datetime.now().strftime("%H:%M:%S.%f")[:-3]
print(f"[{timestamp}] {message}")
sys.stdout.flush()