Skip to content

Commit

Permalink
fix(log): remove options from debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Coeurderoy committed Jul 16, 2020
1 parent b4b93b9 commit 45e4979
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/GoogleCloudPubSub/GoogleCloudPubSub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,7 @@ export class GoogleCloudPubSub implements GCPubSub {
topic,
opts.options?.subscriptionOptions,
);
this.logger.debug(
{
options: opts,
},
`Listened to topic ${topic.name} with subscription ${subscription.name}`,
);
this.logger.debug(`Listened to topic ${topic.name} with subscription ${subscription.name}`);

subscription.on('message', (message: Message): void => {
const extendedMessage: ExtendedMessage<T> = new ExtendedMessage<T>(message);
Expand Down Expand Up @@ -153,7 +148,6 @@ export class GoogleCloudPubSub implements GCPubSub {
this.logger.debug(
{
data,
options: opts,
},
`Found topic ${topic.name} for event ${event}`,
);
Expand All @@ -172,7 +166,6 @@ export class GoogleCloudPubSub implements GCPubSub {
{
data,
attributes,
options: opts,
},
`Sending payload to Topic ${topic.name}`,
);
Expand Down

0 comments on commit 45e4979

Please sign in to comment.