Skip to content

Comments

Added logging feature using morgan#56

Merged
gbowne1 merged 2 commits intogbowne1:masterfrom
Haseebx162006:add-logging-feature
Feb 12, 2026
Merged

Added logging feature using morgan#56
gbowne1 merged 2 commits intogbowne1:masterfrom
Haseebx162006:add-logging-feature

Conversation

@Haseebx162006
Copy link
Contributor

Key Changes
1. Logging Feature
Added: Integrated morgan middleware in server.js with the 'dev' format to log all incoming HTTP requests (Method, Status, Response Time).

2. Server Stability and Fixes
Robust Database Connection: Updated server.js to skip the MongoDB connection if MONGODB_URI is undefined. This allows the server to run in "Mock Mode" (serving the JSON file) without crashing when no database is configured.

Testing
1.Verified that npm run api starts the server successfully without errors.
2.Confirmed that HTTP requests are visible in the terminal logs.
3.Verified that the frontend loads streams correctly on the first visit.

@gbowne1 you are requested to review this code. I would futher love to work on this project

@gbowne1 gbowne1 moved this from Todo to In Progress in codestream Jan 25, 2026
@gbowne1 gbowne1 linked an issue Jan 25, 2026 that may be closed by this pull request
Copy link
Owner

@gbowne1 gbowne1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Haseebx162006

I checked out this change locally for testing and review for merge

It appears to work as intended per the issue description and the PR description.

It does not seem to cause any other issues either.

I was able to get it to do logging easily from this point

Approving this PR for merge pending further review by collaborators and other maintainers

Thanks for the opportunity to review your PR and for your contribution to this project

@gbowne1 gbowne1 requested a review from EricKart January 28, 2026 00:14
@gbowne1 gbowne1 added the enhancement New feature or request label Jan 28, 2026
@gbowne1 gbowne1 requested review from Ved178 and shishir-21 January 30, 2026 19:37
@Ved178
Copy link
Collaborator

Ved178 commented Jan 31, 2026

@Haseebx162006 can you please resolve the merge conflicts? Rest of the changes look good and the PR is ready to be merged.

@Haseebx162006
Copy link
Contributor Author

I have resolved the merge conflicts

@Haseebx162006
Copy link
Contributor Author

@Ved178 you can check

@Haseebx162006
Copy link
Contributor Author

@gbowne1 i think every active collaborator has checked this. And i have merged the conflict's so this pr is eligible to be merged

Repository owner deleted a comment from Haseebx162006 Feb 2, 2026
@gbowne1
Copy link
Owner

gbowne1 commented Feb 8, 2026

@Haseebx162006 @Ved178 @shishir-21 @glenjaysondmello

This might need another round of rebase etc

Make sure everyone is synced up to latest

I reviewed locally again and it seems good

Thanks

Copy link
Collaborator

@Ved178 Ved178 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

Copy link
Collaborator

@shishir-21 shishir-21 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Haseebx162006
Thankyou for this PR,
Morgan is perfectly fine.
No blocking issues found.
This PR is ready to merge.

@gbowne1 gbowne1 merged commit 3ced13a into gbowne1:master Feb 12, 2026
0 of 3 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in codestream Feb 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[Feature][Enhance] add logging

4 participants