Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add middleware morgan to log all requests for debug #200

Merged
merged 5 commits into from
Sep 16, 2024

Conversation

cherylli
Copy link
Contributor

Description

Add morgan and use the NestJS logger (debug level) to log all requests

image

Issue link

n/a

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Feature updates / changes
  • Tests
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

look at log window and ran tests

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have updated the change log

JoshuaHinman
JoshuaHinman previously approved these changes Sep 15, 2024
Copy link
Contributor

@JoshuaHinman JoshuaHinman left a comment

Choose a reason for hiding this comment

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

Tested in swagger - verified requests are logged to console

Ajen07
Ajen07 previously approved these changes Sep 15, 2024
Copy link
Contributor

@Ajen07 Ajen07 left a comment

Choose a reason for hiding this comment

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

All requests are being logged to the console successfully.

@cherylli cherylli dismissed stale reviews from Ajen07 and JoshuaHinman via 4c71376 September 15, 2024 22:29
@cherylli
Copy link
Contributor Author

reviews staled due to merge conflicts

@cherylli cherylli merged commit aa636c3 into dev Sep 16, 2024
1 check passed
@cherylli cherylli deleted the chore/add-request-logging branch September 16, 2024 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants