Skip to content

Commit

Permalink
Merge pull request #4 from stape-io/fix/log-name
Browse files Browse the repository at this point in the history
[Fix] Log name
  • Loading branch information
Bukashk0zzz committed Feb 16, 2023
2 parents ab57405 + b3d980a commit 1c3fa10
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
homepage: "https://stape.io/"
documentation: "https://github.com/stape-io/json-http-request-tag"
versions:
- sha: 0b3a021ec9d32f010abf212ca7f85da62637c9e7
changeNotes: Fix log name
- sha: a3dc2725e8396fbe2b8e10a839828d8a7949c985
changeNotes: Add logging.
- sha: b282fbbe2591c890ab2b9286bc3e721ca7d35e19
Expand Down
4 changes: 2 additions & 2 deletions template.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ if (data.requestTimeout) {

if (isLoggingEnabled) {
logToConsole(JSON.stringify({
'Name': 'JSON Request',
'Name': 'JsonRequest',
'Type': 'Request',
'TraceId': traceId,
'RequestMethod': data.requestMethod,
Expand All @@ -61,7 +61,7 @@ if (isLoggingEnabled) {
sendHttpRequest(data.url, (statusCode, headers, body) => {
if (isLoggingEnabled) {
logToConsole(JSON.stringify({
'Name': 'JSON Request',
'Name': 'JsonRequest',
'Type': 'Response',
'TraceId': traceId,
'ResponseStatusCode': statusCode,
Expand Down
4 changes: 2 additions & 2 deletions template.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ if (data.requestTimeout) {

if (isLoggingEnabled) {
logToConsole(JSON.stringify({
'Name': 'JSON Request',
'Name': 'JsonRequest',
'Type': 'Request',
'TraceId': traceId,
'RequestMethod': data.requestMethod,
Expand All @@ -280,7 +280,7 @@ if (isLoggingEnabled) {
sendHttpRequest(data.url, (statusCode, headers, body) => {
if (isLoggingEnabled) {
logToConsole(JSON.stringify({
'Name': 'JSON Request',
'Name': 'JsonRequest',
'Type': 'Response',
'TraceId': traceId,
'ResponseStatusCode': statusCode,
Expand Down

0 comments on commit 1c3fa10

Please sign in to comment.