@nsshunt/stsobservability 1.0.37 → 1.0.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4889,7 +4889,7 @@ class PublishTransportRESTServer extends STSOptionsBase {
4889
4889
  __publicField(this, "Publish", async (payload) => {
4890
4890
  try {
4891
4891
  if (this.options.showPublishPayload) {
4892
- console.log(chalk$1.grey(`PublishTransportRESTServer::Publish()`));
4892
+ console.log(chalk$1.grey(`PublishTransportRESTServer::Publish() url: [${this.options.url}]`));
4893
4893
  }
4894
4894
  const encodedData = encode(payload, { ignoreUndefined: true });
4895
4895
  const headers = { "Content-Type": "application/octet-stream" };
@@ -4939,6 +4939,9 @@ class PublishTransportRESTServer extends STSOptionsBase {
4939
4939
  }
4940
4940
  return true;
4941
4941
  } catch (error) {
4942
+ if (this.options.showPublishPayload) {
4943
+ console.log(chalk$1.red(`PublishTransportRESTServer::Publish() Error (PublishRESTServer:_PerformPublishRESTAPI:Error: [${error}]`));
4944
+ }
4942
4945
  return false;
4943
4946
  }
4944
4947
  });