add inbound activity logger for debugging

This commit is contained in:
Hazelnoot 2024-11-14 12:11:37 -05:00
parent 2d7918a9b7
commit b65b4ecadc
16 changed files with 414 additions and 10 deletions

View file

@ -13,6 +13,7 @@ import { ServerStatsService } from '@/daemons/ServerStatsService.js';
import { ServerService } from '@/server/ServerService.js';
import { MainModule } from '@/MainModule.js';
import { envOption } from '@/env.js';
import { ActivityLogCleanupService } from '@/daemons/ActivityLogCleanupService.js';
export async function server() {
const app = await NestFactory.createApplicationContext(MainModule, {
@ -28,6 +29,7 @@ export async function server() {
if (!envOption.noDaemons) {
app.get(QueueStatsService).start();
app.get(ServerStatsService).start();
app.get(ActivityLogCleanupService).start();
}
return app;