Skip to content

Commit

Permalink
fix: error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
komalreddy3 committed May 28, 2024
1 parent 0920411 commit 1dd7a5d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pubSub/pubSub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,11 @@ export class PubSubServiceImpl implements PubSubService {
const Info: StreamInfo | null = await this.jsm.streams.info(streamName)
if (Info) {
if (await this.checkConfigChangeReqd(Info.config, streamConfig)) {
await this.jsm.streams.update(streamName, Info.config)
await this.jsm.streams.update(streamName, Info.config).catch(
(err) => {
this.logger.error("error occurred during updating streams", err)
}
)
this.logger.info("streams updated successfully")
}
}
Expand Down

0 comments on commit 1dd7a5d

Please sign in to comment.