@google-cloud/pubsub
Advanced tools
Comparing version 0.30.3 to 0.31.0
@@ -87,2 +87,8 @@ "use strict"; | ||
exports.Topic = topic_1.Topic; | ||
if (process.env.DEBUG_GRPC) { | ||
console.info('gRPC logging set to verbose'); | ||
const { setLogger, setLogVerbosity, logVerbosity } = require('@grpc/grpc-js'); | ||
setLogger(console); | ||
setLogVerbosity(logVerbosity.DEBUG); | ||
} | ||
//# sourceMappingURL=index.js.map |
@@ -29,3 +29,3 @@ "use strict"; | ||
constructor(err, ackIds, rpc) { | ||
super(`Failed to "${rpc}" for ${ackIds.length} message(s). Reason: ${err.message}`); | ||
super(`Failed to "${rpc}" for ${ackIds.length} message(s). Reason: ${process.env.DEBUG_GRPC ? err.stack : err.message}`); | ||
this.ackIds = ackIds; | ||
@@ -32,0 +32,0 @@ this.code = err.code; |
@@ -64,3 +64,3 @@ "use strict"; | ||
constructor(err) { | ||
super(`Failed to connect to channel. Reason: ${err.message}`); | ||
super(`Failed to connect to channel. Reason: ${process.env.DEBUG_GRPC ? err.stack : err.message}`); | ||
this.code = err.message.includes('deadline') | ||
@@ -67,0 +67,0 @@ ? grpc_js_1.status.DEADLINE_EXCEEDED |
@@ -7,2 +7,9 @@ # Changelog | ||
## [0.31.0](https://www.github.com/googleapis/nodejs-pubsub/compare/v0.30.3...v0.31.0) (2019-08-15) | ||
### Features | ||
* **debug:** capture stack trace in errors rather than message ([#718](https://www.github.com/googleapis/nodejs-pubsub/issues/718)) ([bfed3f1](https://www.github.com/googleapis/nodejs-pubsub/commit/bfed3f1)) | ||
### [0.30.3](https://www.github.com/googleapis/nodejs-pubsub/compare/v0.30.2...v0.30.3) (2019-08-03) | ||
@@ -9,0 +16,0 @@ |
{ | ||
"name": "@google-cloud/pubsub", | ||
"description": "Cloud Pub/Sub Client Library for Node.js", | ||
"version": "0.30.3", | ||
"version": "0.31.0", | ||
"license": "Apache-2.0", | ||
@@ -6,0 +6,0 @@ "author": "Google Inc.", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
1477058
23030
6