Skip to content

Commit

Permalink
fix health error msg, add dev script
Browse files Browse the repository at this point in the history
  • Loading branch information
rotorsoft committed Jan 6, 2024
1 parent dfbd2b4 commit 8da5cba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/common-common/src/scripts/startHealthCheckLoop.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { StatsDController } from '../../src/statsd';
import { factory, formatFilename } from '../../src/logging';
import { StatsDController } from '../../src/statsd';

const log = factory.getLogger(formatFilename(__filename));

Expand Down Expand Up @@ -41,7 +41,7 @@ export function startHealthCheckLoop({
await checkFn();
status = 1;
} catch (err) {
log.error(err);
log.error(err.message);
}
StatsDController.get().gauge(stat, status);
const durationUntilNextCheck = nextCheckAt - Date.now();
Expand Down
1 change: 1 addition & 0 deletions packages/discord-bot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"build": "tsc -b && tsc-alias",
"clean": "rm -rf build",
"check-types": "tsc --noEmit",
"dev": "concurrently -n watcher,listener,consumer -c red,green,yellow 'tsc -b -w' 'yarn start' 'yarn start-consumer'",
"start": "ts-node src/discord-listener/discordListener.ts",
"start-consumer": "ts-node src/discord-consumer/discordConsumer.ts",
"start-prod-consumer": "node build/discord-bot/src/discord-consumer/discordConsumer.js",
Expand Down

0 comments on commit 8da5cba

Please sign in to comment.