Skip to content

Commit

Permalink
refactor: less debug output
Browse files Browse the repository at this point in the history
Output only first 1k chars for restQuery response.
  • Loading branch information
mbehr1 committed Jan 1, 2021
1 parent 55baea7 commit 669126e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extension/fbaEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ export class FBAEditorProvider implements vscode.CustomTextEditorProvider, vscod
const rq = this._restQueryExtFunctions.get(extName);
if (rq) {
// call it:
const res = rq(query);
console.log(`restQuery response='${res}'`);
const res: string = rq(query);
console.log(`FBAEditorProvider.restQuery response (first 1k chars)='${res.slice(0, 1000)}'`);
// todo try/catch
webviewPanel.webview.postMessage({ type: e.type, res: JSON.parse(res), id: e.id });
} else {
Expand Down

0 comments on commit 669126e

Please sign in to comment.