@shushed/helpers 0.0.63 → 0.0.64
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.
- package/dist/index.js +6 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1067,9 +1067,12 @@ var PubSubHelper = class extends Runtime {
|
|
|
1067
1067
|
retryMaxDelay: 360,
|
|
1068
1068
|
ackDeadline: 90
|
|
1069
1069
|
};
|
|
1070
|
-
this.logging.log("updateSubscription called with", subscriptionName, subscription, subscriptionMetaData, inputOpts);
|
|
1070
|
+
this.logging.log("updateSubscription called with", subscriptionName, !!subscription, subscriptionMetaData, inputOpts);
|
|
1071
1071
|
const opts = Object.assign({}, defaultOptions, inputOpts);
|
|
1072
|
-
this.logging.log("updateSubscription final opts", opts
|
|
1072
|
+
this.logging.log("updateSubscription final opts", Object.assign({}, opts, {
|
|
1073
|
+
topic: opts.topic.name,
|
|
1074
|
+
dlqTopic: opts.dlqTopic?.name
|
|
1075
|
+
}));
|
|
1073
1076
|
let nextMetadata = null;
|
|
1074
1077
|
if (isSubscriptionOptionsPush(opts)) {
|
|
1075
1078
|
if (opts.endpointUrl !== subscriptionMetaData?.pushConfig?.pushEndpoint || this.serviceAccountEmail !== subscriptionMetaData?.pushConfig.oidcToken?.serviceAccountEmail || process.env.GCLOUD_PROJECT + "/" + this.triggerId !== subscriptionMetaData.pushConfig.oidcToken.audience) {
|
|
@@ -1090,6 +1093,7 @@ var PubSubHelper = class extends Runtime {
|
|
|
1090
1093
|
}
|
|
1091
1094
|
});
|
|
1092
1095
|
} catch (err) {
|
|
1096
|
+
this.logging.error("Invariant: While updating push subscription", err.message, err.stack);
|
|
1093
1097
|
throw new Error("Invariant: While updating push subscription - " + err.message);
|
|
1094
1098
|
}
|
|
1095
1099
|
} else {
|