Skip to content

Commit

Permalink
fix logger stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
in-mai-space committed Jan 9, 2025
1 parent 0b2e550 commit 6cb7dd7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions backend/src/database/migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ import { migrate } from "drizzle-orm/postgres-js/migrator";
import { Configuration } from "../types/config";

export const automigrateDB = async (db: PostgresJsDatabase, config: Configuration) => {
const originalLog = console.log;
console.log = () => {};

if (config.environment !== "production") {
const originalLog = console.log;
console.log = () => {};
try {
await migrate(db, config.automigrate);
} catch (error) {
Expand Down

0 comments on commit 6cb7dd7

Please sign in to comment.