Skip to content

Commit

Permalink
add comment about log format
Browse files Browse the repository at this point in the history
  • Loading branch information
mshustov committed Dec 10, 2020
1 parent a7d5a13 commit 41dad79
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/core/server/elasticsearch/client/configure_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,16 @@ function getErrorMessage(error: ApiError, event: RequestEvent): string {
return `[${error.name}]: ${error.message}`;
}

function getResponseMessage(event: RequestEvent) {
/**
* returns a string in format:
*
* status code
* URL
* request body
*
* so it could be copy-pasted into the Dev console
*/
function getResponseMessage(event: RequestEvent): string {
const params = event.meta.request.params;

// definition is wrong, `params.querystring` can be either a string or an object
Expand Down

0 comments on commit 41dad79

Please sign in to comment.