Skip to content

Copilot/add error logging for html generation#687

Merged
KrzysztofPajak merged 4 commits intodevelopfrom
copilot/add-error-logging-for-html-generation
Apr 29, 2026
Merged

Copilot/add error logging for html generation#687
KrzysztofPajak merged 4 commits intodevelopfrom
copilot/add-error-logging-for-html-generation

Conversation

@KrzysztofPajak
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
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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.

Comment thread src/Business/Grand.Business.Common/Services/Pdf/HtmlToPdfService.cs Outdated
Comment thread src/Business/Grand.Business.Common/Services/Pdf/HtmlToPdfService.cs
Comment thread src/Business/Grand.Business.Common/Services/Pdf/HtmlToPdfService.cs Outdated
Comment thread src/Business/Grand.Business.Common/Services/Pdf/HtmlToPdfService.cs
KrzysztofPajak 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>
@KrzysztofPajak KrzysztofPajak merged commit 43bcfca into develop Apr 29, 2026
4 of 5 checks passed
@KrzysztofPajak KrzysztofPajak 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