Skip to content

Fix structured exception logging in LogsListHandler#728

Merged
ziagham merged 1 commit intoflowsynx:masterfrom
djzh23:fix/structured-logging-logslist
Nov 17, 2025
Merged

Fix structured exception logging in LogsListHandler#728
ziagham merged 1 commit intoflowsynx:masterfrom
djzh23:fix/structured-logging-logslist

Conversation

@djzh23
Copy link
Copy Markdown
Contributor

@djzh23 djzh23 commented Nov 17, 2025

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

This PR updates the exception logging in LogsListHandler to use structured logging instead of ex.ToString().
Structured logging keeps the exception metadata intact (stack trace, type, message), improves compatibility with logging providers, and follows .NET logging best practices.

Specifically:

Replaced _logger.LogError(ex.ToString());
with _logger.LogError(ex, "FlowSynx exception caught in LogsListHandler.");

No functional behavior was changed besides logging.

Issue reference

Closes #726

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Unit tests passing
  • End-to-end tests passing
  • Extended the documentation / Created issue in flowsynx/website#
  • Specification has been updated / Created issue in flowsynx/website#
  • Provided sample for the feature / Created issue in flowsynx/website#

@djzh23 djzh23 requested review from a team as code owners November 17, 2025 19:05
@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Member

@ziagham ziagham left a comment

Choose a reason for hiding this comment

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

Thank you for contributing.

@ziagham ziagham merged commit 02cc92f into flowsynx:master Nov 17, 2025
4 checks passed
@ziagham
Copy link
Copy Markdown
Member

ziagham commented Nov 17, 2025

@djzh23
If you find this project useful, please consider giving it a ⭐ on GitHub!
Your support means a lot.

@djzh23
Copy link
Copy Markdown
Contributor Author

djzh23 commented Nov 17, 2025

Thank you for merging the PR!
Just starred the project ⭐ and looking forward to helping out with more issues.

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.

Bug: Exception is logged using ex.ToString() instead of structured exception logging in LogsListHandler

2 participants