diff --git a/.env.development b/.env.development index 16c43f8..90885c6 100644 --- a/.env.development +++ b/.env.development @@ -13,6 +13,7 @@ IPFS_HOSTNAME=ipfs IPFS_PROTOCOL=http IPFS_PORT=5001 METADATA_ENV=development -SENTRY_SAMPLE_RATE=0.1 +SENTRY_SAMPLE_RATE=1 SENTRY_TRACES_SAMPLE_RATE=0.01 SENTRY_DSN= +LOG_LEVEL=debug diff --git a/src/index.ts b/src/index.ts index 7089822..733dbdd 100644 --- a/src/index.ts +++ b/src/index.ts @@ -12,7 +12,7 @@ import log from "loglevel"; import morgan from "morgan"; import path from "path"; -log.enableAll(); +log.setLevel((process.env.LOG_LEVEL as log.LogLevelDesc) || log.levels.INFO); const envPath = path.resolve(".", process.env.NODE_ENV !== "production" ? ".env.development" : ".env"); // setup environment