Skip to content

Commit

Permalink
feat: Add debug endpoint for timeout error
Browse files Browse the repository at this point in the history
  • Loading branch information
nezort11 committed Jan 5, 2025
1 parent 1ab548c commit 2a462b4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ const main = async () => {

const app = express();

app.post("/debug/timeout", async (req, res) => {
setInterval(() => {
logger.info(`Debug timeout ${new Date().toLocaleString()}`);
}, 5000);
});

app.use(bot.webhookCallback("/webhook"));

// if (process.argv[1] === fileURLToPath(import.meta.url)) {
Expand Down

0 comments on commit 2a462b4

Please sign in to comment.