bugfix - print sql statemnts only in dev

This commit is contained in:
Viktor Barzin 2025-06-30 23:22:12 +00:00
parent 3a4fbdf99a
commit a84dcc0588
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863

View file

@ -13,7 +13,7 @@ load_dotenv()
DATABASE_URL = os.environ["DB_CONNECTION_STRING"]
debug = os.getenv("ENV", "dev") == "prod"
debug = os.getenv("ENV", "dev") == "dev"
engine = create_engine(DATABASE_URL, echo=debug) # `echo=True` for debug logs
SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)