Skip to content

Commit

Permalink
refactor: update localRoot paths in launch.json and improve logging i…
Browse files Browse the repository at this point in the history
…n CheckHeartbeat and UpdateConnectionStatus
  • Loading branch information
simlarsen committed Jan 23, 2025
1 parent e932eb1 commit 3546d92
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 18 deletions.
20 changes: 3 additions & 17 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
},
{
"address": "127.0.0.1",
"localRoot": "${workspaceFolder}/Worker",
"localRoot": "${workspaceFolder}/Workflow",
"name": "Workflow: Debug with Docker",
"port": 8735,
"remoteRoot": "/usr/src/app",
Expand All @@ -107,7 +107,7 @@
},
{
"address": "127.0.0.1",
"localRoot": "${workspaceFolder}/Worker",
"localRoot": "${workspaceFolder}/Docs",
"name": "Docs: Debug with Docker",
"port": 8738,
"remoteRoot": "/usr/src/app",
Expand All @@ -121,7 +121,7 @@
},
{
"address": "127.0.0.1",
"localRoot": "${workspaceFolder}/Worker",
"localRoot": "${workspaceFolder}/APIReference",
"name": "API Reference: Debug with Docker",
"port": 8737,
"remoteRoot": "/usr/src/app",
Expand Down Expand Up @@ -259,20 +259,6 @@
"restart": true,
"autoAttachChildProcesses": true
},
{
"address": "127.0.0.1",
"localRoot": "${workspaceFolder}/Workers",
"name": "Workers: Debug with Docker",
"port": 9654,
"remoteRoot": "/usr/src/app",
"request": "attach",
"skipFiles": [
"<node_internals>/**"
],
"type": "node",
"restart": true,
"autoAttachChildProcesses": true
},
{
"address": "127.0.0.1",
"localRoot": "${workspaceFolder}/StatusPage",
Expand Down
1 change: 1 addition & 0 deletions Worker/Jobs/IncomingRequestMonitor/CheckHeartbeat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ RunCron(
incomingRequestReceivedAt:
monitor.incomingRequestReceivedAt || monitor.createdAt!,
onlyCheckForIncomingRequestReceivedAt: true,
monitorId: monitor.id!,
};

logger.debug(
Expand Down
2 changes: 1 addition & 1 deletion Worker/Jobs/Probe/UpdateConnectionStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ RunCron(
skip: 0,
});

logger.debug(`Found ${probes.length} incoming request monitors`);
logger.debug(`Found ${probes.length} probes`);

logger.debug(probes);

Expand Down

0 comments on commit 3546d92

Please sign in to comment.