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?.(
{
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 },
},
);
+4 -4
View File
@@ -50,11 +50,11 @@ export interface DebugArg {
type?:
| "gatewayIdentify"
| "error"
| "requestManager"
| "globallyRateLimited"
| "requestManagerSuccess"
| "requestManagerFetching"
| "requestManagerFetched"
| "requestCreate"
| "requestSuccess"
| "requestFetch"
| "requestFetched"
| "requestMembersProcessing"
| "gatewayHeartbeat"
| "gatewayHeartbeatStopped"