Skip to content

Commit 96e30e8

Browse files
Merge pull request #5 from bitvavo/use-main-logger-for-exiting-app
use main logger for exiting app
2 parents e76eafc + a6f6af2 commit 96e30e8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ksm2/bootcamp-slack-app",
3-
"version": "1.7.0",
3+
"version": "1.7.1",
44
"tasks": {
55
"dev": "deno run --allow-read --allow-write=data --allow-env --allow-ffi --allow-sys=osRelease --allow-net=slack.com,wss-primary.slack.com,0.0.0.0 --watch src/main.ts"
66
},

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ socketModeClient.on("disconnected", (error: Error | undefined) => {
169169

170170
socketModeClient.on("disconnect", (event) => {
171171
if (event && event.reason === "too_many_websockets") {
172-
socketModeLogger.error(
172+
logger.error(
173173
"Received too_many_websockets disconnect. Exiting app.",
174174
);
175175
Deno.exit(1);

0 commit comments

Comments
 (0)