From 413c8d86d396972b487a3a6fe8b1f9a73a5e2713 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Tue, 26 Jul 2022 04:58:37 +0000 Subject: [PATCH] verbose mysql logs --- migration/first_draft.sql | 4 ++-- web3-proxy/Cargo.toml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/migration/first_draft.sql b/migration/first_draft.sql index a7cdc7c0..97a1219b 100644 --- a/migration/first_draft.sql +++ b/migration/first_draft.sql @@ -6,7 +6,7 @@ CREATE TABLE users ( email VARCHAR(320), ) --- TODO: foreign key +-- TODO: foreign keys -- TODO: how should we store addresses? -- TODO: creation time? -- TODO: permissions. likely similar to infura @@ -27,7 +27,7 @@ CREATE TABLE blocklist ( reason TEXT, ) --- TODO: foreign key +-- TODO: foreign keys -- TODO: index on api_key -- TODO: what size for api_key -- TODO: track active with a timestamp? diff --git a/web3-proxy/Cargo.toml b/web3-proxy/Cargo.toml index 78772807..b77f1752 100644 --- a/web3-proxy/Cargo.toml +++ b/web3-proxy/Cargo.toml @@ -7,9 +7,9 @@ default-run = "web3-proxy" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [features] -default = ["deadlock_detection"] +default = ["deadlock_detection", "verbose_db"] deadlock_detection = ["parking_lot/deadlock_detection"] -verbose = ["sea-orm/debug-print"] +verbose_db = ["sea-orm/debug-print"] [dependencies] redis-cell-client = { path = "../redis-cell-client" } @@ -42,7 +42,7 @@ regex = "1.6.0" reqwest = { version = "0.11.11", default-features = false, features = ["json", "tokio-rustls"] } rustc-hash = "1.1.0" # siwe = "0.4.0" # blocked by https://github.com/spruceid/siwe-rs/issues/36 -sea-orm = { version = "0.9.1", features = [ "macros" ] } +sea-orm = { version = "0.9.1", features = ["macros"] } serde = { version = "1.0.140", features = [] } serde_json = { version = "1.0.82", default-features = false, features = ["alloc", "raw_value"] } tokio = { version = "1.20.1", features = ["full", "tracing"] }