Skip to content

Commit

Permalink
test: turn off drizzle logger (#2370)
Browse files Browse the repository at this point in the history
  • Loading branch information
holic authored Mar 5, 2024
1 parent c58da9a commit 6878b50
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ const blocks = groupLogsByBlockNumber(

describe("createStorageAdapter", async () => {
const db = drizzle(postgres(process.env.DATABASE_URL!), {
logger: new DefaultLogger(),
// TODO: make a debug-based logger so this can be toggled by env var
// logger: new DefaultLogger(),
});

const publicClient = createPublicClient({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ const blocks = groupLogsByBlockNumber(

describe("createStorageAdapter", async () => {
const db = drizzle(postgres(process.env.DATABASE_URL!), {
logger: new DefaultLogger(),
// TODO: make a debug-based logger so this can be toggled by env var
// logger: new DefaultLogger(),
});

const publicClient = createPublicClient({
Expand Down
3 changes: 2 additions & 1 deletion packages/store-sync/src/postgres/setupTables.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ describe("setupTables", async () => {

beforeEach(async () => {
db = drizzle(postgres(process.env.DATABASE_URL!), {
logger: new DefaultLogger(),
// TODO: make a debug-based logger so this can be toggled by env var
// logger: new DefaultLogger(),
});
});

Expand Down
1 change: 1 addition & 0 deletions packages/store-sync/src/sqlite/sqliteStorage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ describe("sqliteStorage", async () => {

beforeEach(async () => {
db = drizzle(new SqlJs.Database(), {
// TODO: make a debug-based logger so this can be toggled by env var
// logger: new DefaultLogger(),
});
});
Expand Down

0 comments on commit 6878b50

Please sign in to comment.