diff --git a/src/rest/request_manager.ts b/src/rest/request_manager.ts index 64880892c..7676daf48 100644 --- a/src/rest/request_manager.ts +++ b/src/rest/request_manager.ts @@ -188,7 +188,7 @@ async function runMethod( ) { eventHandlers.debug?.( { - type: "requestManager", + type: "requestCreate", data: { method, url, body, retryCount, bucketID }, }, ); @@ -228,14 +228,14 @@ async function runMethod( eventHandlers.debug?.( { - type: "requestManagerFetching", + type: "requestFetch", data: { method, url, body, retryCount, bucketID }, }, ); const response = await fetch(urlToUse, createRequestBody(body, method)); eventHandlers.debug?.( { - type: "requestManagerFetched", + type: "requestFetched", data: { method, url, body, retryCount, bucketID, response }, }, ); @@ -269,7 +269,7 @@ async function runMethod( eventHandlers.debug?.( { - type: "requestManagerSuccess", + type: "requestSuccess", data: { method, url, body, retryCount, bucketID }, }, ); diff --git a/src/types/options.ts b/src/types/options.ts index 629243a9b..464c7400c 100644 --- a/src/types/options.ts +++ b/src/types/options.ts @@ -50,11 +50,11 @@ export interface DebugArg { type?: | "gatewayIdentify" | "error" - | "requestManager" | "globallyRateLimited" - | "requestManagerSuccess" - | "requestManagerFetching" - | "requestManagerFetched" + | "requestCreate" + | "requestSuccess" + | "requestFetch" + | "requestFetched" | "requestMembersProcessing" | "gatewayHeartbeat" | "gatewayHeartbeatStopped"