diff --git a/packages/relay/src/lib/services/hapiService/hapiService.ts b/packages/relay/src/lib/services/hapiService/hapiService.ts index 1ca0e5bce1..78c449be5f 100644 --- a/packages/relay/src/lib/services/hapiService/hapiService.ts +++ b/packages/relay/src/lib/services/hapiService/hapiService.ts @@ -28,7 +28,7 @@ import HbarLimit from '../../hbarlimiter'; import { Counter, Registry } from 'prom-client'; import { SDKClient } from '../../clients/sdkClient'; import { CacheService } from '../cacheService/cacheService'; -import { AccountId, Client, PrivateKey } from '@hashgraph/sdk'; +import { AccountId, Client, LogLevel, PrivateKey, Logger as SDKLogger } from '@hashgraph/sdk'; import fs from 'fs'; export default class HAPIService { @@ -262,7 +262,8 @@ export default class HAPIService { const SDK_REQUEST_TIMEOUT = parseInt(process.env.SDK_REQUEST_TIMEOUT || '10000'); client.setRequestTimeout(SDK_REQUEST_TIMEOUT); - + const sdkLogger = new SDKLogger(LogLevel.Debug); + client.setLogger(sdkLogger); logger.info( `SDK client successfully configured to ${JSON.stringify(hederaNetwork)} for account ${ client.operatorAccountId