diff --git a/packages/rest/src/restManager.ts b/packages/rest/src/restManager.ts index f918f8534..26661d3cc 100644 --- a/packages/rest/src/restManager.ts +++ b/packages/rest/src/restManager.ts @@ -83,14 +83,14 @@ export function createRestManager ( fetching: options.fetching ?? function (opts: RestSendRequestOptions) { - options.debug?.( + rest.debug?.( `[REST - fetching] URL: ${opts.url} | ${JSON.stringify(opts)}` ) }, fetched: options.fetched ?? function (opts: RestSendRequestOptions, response: Response) { - options.debug?.( + rest.debug?.( `[REST - fetched] URL: ${opts.url} | Status: ${ response.status } ${JSON.stringify(opts)}`