Skip to content

Commit

Permalink
prevent alembic from configuring logger (#2826)
Browse files Browse the repository at this point in the history
* k

* k
  • Loading branch information
pablonyx authored Oct 17, 2024
1 parent 44ebe3a commit a159779
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions backend/ee/danswer/server/tenants/provisioning.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ def run_alembic_migrations(schema_name: str) -> None:
"script_location", os.path.join(root_dir, "alembic")
)

# Ensure that logging isn't broken
alembic_cfg.attributes["configure_logger"] = False

# Mimic command-line options by adding 'cmd_opts' to the config
alembic_cfg.cmd_opts = SimpleNamespace() # type: ignore
alembic_cfg.cmd_opts.x = [f"schema={schema_name}"] # type: ignore
Expand Down
1 change: 0 additions & 1 deletion web/src/app/auth/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { SignInButton } from "./SignInButton";
import { EmailPasswordForm } from "./EmailPasswordForm";
import { Card, Title, Text } from "@tremor/react";
import Link from "next/link";

import { LoginText } from "./LoginText";
import { getSecondsUntilExpiration } from "@/lib/time";
import AuthFlowContainer from "@/components/auth/AuthFlowContainer";
Expand Down

0 comments on commit a159779

Please sign in to comment.