diff --git a/src/khoj/main.py b/src/khoj/main.py index 22bb8586..751f75e9 100644 --- a/src/khoj/main.py +++ b/src/khoj/main.py @@ -2,6 +2,7 @@ import os import signal import sys +import locale if sys.stdout is None: sys.stdout = open(os.devnull, "w") @@ -32,6 +33,9 @@ from khoj.utils.cli import cli # Initialize the Application Server app = FastAPI() +# Set Locale +locale.setlocale(locale.LC_ALL, "") + # Setup Logger rich_handler = RichHandler(rich_tracebacks=True) rich_handler.setFormatter(fmt=logging.Formatter(fmt="%(message)s", datefmt="[%X]"))