This commit is contained in:
ayntee
2020-12-26 20:30:31 +04:00
parent 2a6d5ad070
commit d83a049a93
2 changed files with 8 additions and 8 deletions
+4 -4
View File
@@ -188,7 +188,7 @@ async function runMethod(
) { ) {
eventHandlers.debug?.( eventHandlers.debug?.(
{ {
type: "requestManager", type: "requestCreate",
data: { method, url, body, retryCount, bucketID }, data: { method, url, body, retryCount, bucketID },
}, },
); );
@@ -228,14 +228,14 @@ async function runMethod(
eventHandlers.debug?.( eventHandlers.debug?.(
{ {
type: "requestManagerFetching", type: "requestFetch",
data: { method, url, body, retryCount, bucketID }, data: { method, url, body, retryCount, bucketID },
}, },
); );
const response = await fetch(urlToUse, createRequestBody(body, method)); const response = await fetch(urlToUse, createRequestBody(body, method));
eventHandlers.debug?.( eventHandlers.debug?.(
{ {
type: "requestManagerFetched", type: "requestFetched",
data: { method, url, body, retryCount, bucketID, response }, data: { method, url, body, retryCount, bucketID, response },
}, },
); );
@@ -269,7 +269,7 @@ async function runMethod(
eventHandlers.debug?.( eventHandlers.debug?.(
{ {
type: "requestManagerSuccess", type: "requestSuccess",
data: { method, url, body, retryCount, bucketID }, data: { method, url, body, retryCount, bucketID },
}, },
); );
+4 -4
View File
@@ -50,11 +50,11 @@ export interface DebugArg {
type?: type?:
| "gatewayIdentify" | "gatewayIdentify"
| "error" | "error"
| "requestManager"
| "globallyRateLimited" | "globallyRateLimited"
| "requestManagerSuccess" | "requestCreate"
| "requestManagerFetching" | "requestSuccess"
| "requestManagerFetched" | "requestFetch"
| "requestFetched"
| "requestMembersProcessing" | "requestMembersProcessing"
| "gatewayHeartbeat" | "gatewayHeartbeat"
| "gatewayHeartbeatStopped" | "gatewayHeartbeatStopped"