Registry Mirror
Skip to content

Conversation

@grandnode-dev

Copy link
Copy Markdown
Member

No description provided.

Copilot AI and others added 2 commits April 29, 2026 18:18
…rvice

Agent-Logs-Url: https://github.com/grandnode/grandnode2/sessions/53809890-623e-4f82-b022-b85ca5e43b88

Co-authored-by: KrzysztofPajak <16772986+KrzysztofPajak@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 29, 2026 19:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR adds error logging around Razor view rendering and HTML-to-PDF generation to improve diagnosability when HTML generation or PDF parsing fails.

Changes:

  • Inject ILogger<T> into ViewRenderService and log rendering failures with partial HTML length.
  • Inject ILogger<T> into HtmlToPdfService and log exceptions during PDF generation for orders and shipment slips.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
src/Web/Grand.Web.Common/ViewRender/ViewRenderService.cs Adds ILogger<ViewRenderService> and logs exceptions thrown by RenderAsync.
src/Business/Grand.Business.Common/Services/Pdf/HtmlToPdfService.cs Adds ILogger<HtmlToPdfService> and logs exceptions during PDF generation from rendered HTML.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

grandnode-dev and others added 2 commits April 29, 2026 21:21
…ce.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ce.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@grandnode-dev
grandnode-dev merged commit 43bcfca into develop Apr 29, 2026
4 of 5 checks passed
@grandnode-dev
grandnode-dev deleted the copilot/add-error-logging-for-html-generation branch April 29, 2026 19:27
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.

3 participants