diff --git a/packages/starknet-snap/src/index.ts b/packages/starknet-snap/src/index.ts index 52bcced5..1f79f901 100644 --- a/packages/starknet-snap/src/index.ts +++ b/packages/starknet-snap/src/index.ts @@ -89,12 +89,11 @@ import { } from './utils/starknetUtils'; declare const snap; +logger.logLevel = parseInt(Config.logLevel, 10); export const onRpcRequest: OnRpcRequestHandler = async ({ request }) => { const requestParams = request?.params as unknown as ApiRequestParams; - logger.logLevel = parseInt(Config.logLevel, 10); - logger.log(`${request.method}:\nrequestParams: ${toJson(requestParams)}`); try {