We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fab1e29 commit daf1b19Copy full SHA for daf1b19
src/core/util.ts
@@ -44,7 +44,9 @@ export async function request<DataType = unknown, ErrorType = string>(
44
): Promise<RequestResponse<DataType, ErrorType>> {
45
log.info(
46
'api-calls',
47
- `[🐛 ${method}] ${endpoint} - Size ${formatBytes(JSON.stringify(body).length)}.`,
+ `[🐛 ${method}] ${endpoint} - ${
48
+ body ? `Size: ${formatBytes(JSON.stringify(body).length)}` : ''
49
+ }.`,
50
{ payload: body }
51
)
52
try {
0 commit comments