Skip to content

Commit f06e45c

Browse files
committed
fix(logging): log 2000 chars on wrong type
Log 2000 instead of just 200 chars in case of http request answers with wrong content-type.
1 parent ed62583 commit f06e45c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extension/fbaEditor.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ export class FBAEditorProvider implements vscode.CustomTextEditorProvider, vscod
248248
//console.log(`request statusCode=${result.res.statusCode} content-type='${contentType}'`);
249249
if (typeof contentType === 'string' && !contentType.includes('pplication/json')) {
250250
console.warn(`triggerRestQuery '${JSON.stringify(e.req.request)}' returned wrong content-type : '${contentType}'`);
251-
console.warn(` body first 200 chars='${result.body.slice(0, 200)}'`);
251+
console.warn(` body first 2000 chars='${result.body.slice(0, 2000)}'`);
252252
}
253253
}
254254
const json = JSON.parse(result.body);

0 commit comments

Comments
 (0)