Skip to content

Improve remote instance serialization and exception logging in unattended installation#5336

Merged
danielmarbach merged 2 commits intomasterfrom
unattended-installation
Mar 4, 2026
Merged

Improve remote instance serialization and exception logging in unattended installation#5336
danielmarbach merged 2 commits intomasterfrom
unattended-installation

Conversation

@danielmarbach
Copy link
Contributor

@danielmarbach danielmarbach commented Feb 27, 2026

This pull request refactors JSON serialization for RemoteInstanceSetting objects to use source-generated context, and improves error logging throughout the unattended installer classes by logging the full exception object instead of just the message. These changes enhance both performance and troubleshooting capabilities.

Serialization improvements:

  • Refactored RemoteInstanceConverter to use source-generated RemoteInstanceContext for JSON serialization and deserialization, replacing manual JsonSerializerOptions configuration. This improves performance and maintainability of serialization logic.

Error logging enhancements:

  • Updated error logging in all installer classes (UnattendServiceControlInstaller, UnattendAuditInstaller, UnattendMonitoringInstaller) to log the full exception object instead of only the message, providing more detailed information for troubleshooting. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]

@danielmarbach danielmarbach force-pushed the unattended-installation branch from 82a11b4 to 74343f6 Compare March 2, 2026 14:59
@danielmarbach danielmarbach changed the title Unattended installation Improve exception logging in unattended installation Mar 3, 2026
@danielmarbach danielmarbach changed the title Improve exception logging in unattended installation Improve remote instance serialization and exception logging in unattended installation Mar 3, 2026
@danielmarbach danielmarbach marked this pull request as ready for review March 3, 2026 09:36
@danielmarbach danielmarbach merged commit 75b9e42 into master Mar 4, 2026
32 checks passed
@danielmarbach danielmarbach deleted the unattended-installation branch March 4, 2026 07:27
@danielmarbach danielmarbach added this to the vNext milestone Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants