Skip to content

feat: Implement startup logging to DB#485

Merged
motionduck merged 1 commit into
developfrom
startup-log
Apr 16, 2026
Merged

feat: Implement startup logging to DB#485
motionduck merged 1 commit into
developfrom
startup-log

Conversation

@motionduck
Copy link
Copy Markdown
Member

Changelog:

  • Added a startupLog helper and a startupLogs array in env.ts to capture and temporarily store log messages during startup, before the main logger is ready. These logs are later drained and logged using the main logger once initialization is complete.
  • In server.ts, after the database connection is established and the main logger is available, all the stored statup logs are drained and logged to the database.
  • Specified rootDir in backend tsconfig.json to fix warning in the TypeScript project structure.

@motionduck motionduck self-assigned this Apr 16, 2026
@motionduck motionduck added backend improvement Improvement to existing functionality labels Apr 16, 2026
@motionduck motionduck requested a review from aydex April 16, 2026 00:23
@motionduck motionduck merged commit 91cafe5 into develop Apr 16, 2026
9 checks passed
@motionduck motionduck deleted the startup-log branch April 16, 2026 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend improvement Improvement to existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants