Skip to content

HDRP runtime logging on NLog - #32

Merged
freezy merged 2 commits into
masterfrom
feat/error-reporting
Oct 15, 2026
Merged

freezy merged 2 commits into
masterfrom
feat/error-reporting

Conversation

@freezy

@freezy freezy commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

Part of the logging and error reporting work. It follows the level policy from freezy/VisualPinball.Engine#590: errors are for VPE bugs, and problems the user or table author can fix are warnings.

The material resolver and auto focus log through NLog instead of Debug.Log, at the right levels. Probes that fail on purpose log at Debug. Losing subsurface scattering is a warning, once per profile.

Depends on freezy/VisualPinball.Engine#590 (LogThrottle/LogOncePerKey and the logging-rules test that now covers this package), so merge that first.

Material resolver and auto focus log through NLog at the right levels; probes
that fail on purpose log at debug, and losing subsurface scattering is a
warning once per profile.
@greptile-apps

greptile-apps Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge after its stated engine dependency.

Summary

Moves HDRP runtime logs to NLog and uses warning or debug levels based on the problem.

  • Material resolution explains profile failures and keeps fallback details at Debug.
  • Autofocus warnings identify the camera and the HDRP setup it needs.
  • Startup template messages separate required assets from optional ones.

Reviews (2) · Last reviewed commit: "logging: Warn when a diffusion profile's..." · Reviewed by Greptile

Comment thread Runtime/HdrpMaterialResolver.cs
…eason.

Besides an exception, HDRP renaming its internal fields or returning no
hash now warns too, instead of silently losing subsurface scattering.
@freezy
freezy merged commit ed5670a into master Oct 15, 2026
5 checks passed
@freezy
freezy deleted the feat/error-reporting branch October 15, 2026 19:23
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