Skip to content

Commit dd12ce0

Browse files
authored
chore: improve cloud api response logging (#32773)
* chore: improve cloud api response logging * review
1 parent 011bf43 commit dd12ce0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/server/lib/cloud/api/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ import { isNonRetriableCertErrorCode } from '../network/non_retriable_cert_error
4040

4141
const debug = debugModule('cypress:server:cloud:api')
4242
const debugProtocol = debugModule('cypress:server:protocol')
43+
const debugVerbose = debugModule('cypress-verbose:server:cloud:api')
4344

4445
const THIRTY_SECONDS = humanInterval('30 seconds')
4546
const SIXTY_SECONDS = humanInterval('60 seconds')
@@ -164,7 +165,8 @@ const rp = request.defaults((params: CypressRequestOptions, callback) => {
164165
cacheResponse(resp, params)
165166
}
166167

167-
return debug('response %o', resp)
168+
debug(`${params.method} ${params.url} response received`)
169+
debugVerbose('response: %o', resp)
168170
})
169171
})
170172

0 commit comments

Comments
 (0)