diff --git a/docker-compose.yaml b/docker-compose.yaml index 4069e196..74799fef 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -79,6 +79,7 @@ services: - WEBHOOK_BLOCK_FILTER=${WEBHOOK_BLOCK_FILTER:-} - CONTIGUOUS_DATA_CACHE_CLEANUP_THRESHOLD=${CONTIGUOUS_DATA_CACHE_CLEANUP_THRESHOLD:-} - TRUSTED_ARNS_GATEWAY_URL=${TRUSTED_ARNS_GATEWAY_URL:-https://__NAME__.arweave.net} + - AR_IO_SDK_LOG_LEVEL=${AR_IO_SDK_LOG_LEVEL:-none} - ARNS_RESOLVER_PRIORITY_ORDER=${ARNS_RESOLVER_PRIORITY_ORDER:-on-demand,gateway} - ARNS_RESOLVER_OVERRIDE_TTL_SECONDS=${ARNS_RESOLVER_OVERRIDE_TTL_SECONDS:-} - ARNS_CACHE_TTL_SECONDS=${ARNS_CACHE_TTL_SECONDS:-3600} diff --git a/src/config.ts b/src/config.ts index ac2f447d..c4f7f60c 100644 --- a/src/config.ts +++ b/src/config.ts @@ -416,6 +416,11 @@ export const WEBHOOK_BLOCK_FILTER = createFilter( // ArNS Resolution // +export const AR_IO_SDK_LOG_LEVEL = env.varOrDefault( + 'AR_IO_SDK_LOG_LEVEL', + 'none', +); + export const ARNS_CACHE_TYPE = env.varOrDefault('ARNS_CACHE_TYPE', 'node'); export const ARNS_CACHE_TTL_SECONDS = +env.varOrDefault( diff --git a/src/system.ts b/src/system.ts index 1f1c1cf1..2003619b 100644 --- a/src/system.ts +++ b/src/system.ts @@ -18,7 +18,7 @@ import { default as Arweave } from 'arweave'; import EventEmitter from 'node:events'; import fs from 'node:fs'; -import { AOProcess, ARIO } from '@ar.io/sdk'; +import { AOProcess, ARIO, Logger as ARIOLogger } from '@ar.io/sdk'; import awsLite from '@aws-lite/client'; import awsLiteS3 from '@aws-lite/s3'; @@ -98,6 +98,8 @@ const arweave = Arweave.init({}); // IO/AO SDK +ARIOLogger.default.setLogLevel(config.AR_IO_SDK_LOG_LEVEL as any); + const arIO = ARIO.init({ process: new AOProcess({ processId: config.IO_PROCESS_ID,