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

feat: improving logging #4

Merged
merged 15 commits into from
Nov 3, 2024
Merged

feat: improving logging #4

merged 15 commits into from
Nov 3, 2024

Conversation

gabrielg2020
Copy link
Owner

@gabrielg2020 gabrielg2020 commented Nov 2, 2024

Description

Improving logging using logrus. Also changing error messages for better error tracking

Type of Change

  • Bug fix (non-breaking change fixing an issue)
  • New feature (non-breaking change adding functionality)
  • Breaking change (fix or feature that might cause existing functionality to change)
  • Performance improvement
  • Other (please specify)

Checklist

  • I have performed a self-review of my code.
  • I have commented my code, especially in hard-to-understand areas.
  • I have updated the documentation where necessary.
  • My changes generate no new warnings or errors.
  • I have added tests that prove my fix is effective or that my feature works.
  • All new and existing tests pass.
  • My PR title follows the Conventional Commits specification.

@gabrielg2020 gabrielg2020 merged commit 2d5fd61 into main Nov 3, 2024
5 checks passed
@gabrielg2020 gabrielg2020 deleted the improving-error-handling branch November 3, 2024 17:33
gabrielg2020 added a commit that referenced this pull request Nov 18, 2024
* feat: improved logging for `FENService`

Signed-off-by: Gabriel Guimaraes <[email protected]>

* fix: track logger.go

* feat: improved logging for `FENHandler`

* feat: improved logging for `ChessboardEntity`

* feat: improved logging for `MoveEntity`

* feat: improved logging for `MoveService`

* feat: improved logging for `MoveHandler`

Signed-off-by: Gabriel Guimaraes <[email protected]>

* feat: added debug logging when creating new move

* feat: create a logrus-gin middleware

* fix: create helper functions to safely deref pointers

* feat: add error logging to handlers

* feat: add file name & file line when logging

* feat: improved error logging for `FENService`

* feat: improved error logging for `MoveService`

* feat: use `.env` to set logger level

---------

Signed-off-by: Gabriel Guimaraes <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant