Skip to content

Commit 4b5871c

Browse files
authored
Minor improvements to resource changed log (#9303)
1 parent bb5fb93 commit 4b5871c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Aspire.Hosting/ApplicationModel/ResourceNotificationService.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -541,31 +541,31 @@ public Task PublishUpdateAsync(IResource resource, string resourceId, Func<Custo
541541
"ResourceType = {ResourceType}, " +
542542
"CreationTimeStamp = {CreationTimeStamp:s}, " +
543543
"State = {{ Text = {StateText}, Style = {StateStyle} }}, " +
544+
"IsHidden = {IsHidden}, " +
544545
"HeathStatus = {HealthStatus}, " +
545546
"ResourceReady = {ResourceReady}, " +
546547
"ExitCode = {ExitCode}, " +
547548
"Urls = {{ {Urls} }}, " +
548549
"EnvironmentVariables = {{ {EnvironmentVariables} }}, " +
549550
"Properties = {{ {Properties} }}, " +
550551
"HealthReports = {{ {HealthReports} }}, " +
551-
"Commands = {{ {Commands} }}, " +
552-
"IsHidden = {{ {IsHidden} }}",
552+
"Commands = {{ {Commands} }}",
553553
newState.Version,
554554
resource.Name,
555555
resourceId,
556556
newState.ResourceType,
557557
newState.CreationTimeStamp,
558558
newState.State?.Text,
559559
newState.State?.Style,
560+
newState.IsHidden,
560561
newState.HealthStatus,
561562
newState.ResourceReadyEvent is not null,
562563
newState.ExitCode,
563564
string.Join(" ", newState.Urls.Select(u => $"{u.Name} = {u.Url}")),
564565
string.Join(" ", newState.EnvironmentVariables.Where(e => e.IsFromSpec).Select(e => $"{e.Name} = {e.Value}")),
565566
string.Join(" ", newState.Properties.Select(p => $"{p.Name} = {Stringify(p.Value)}")),
566567
string.Join(" ", newState.HealthReports.Select(p => $"{p.Name} = {Stringify(p.Status)}")),
567-
string.Join(" ", newState.Commands.Select(c => $"{c.DisplayName} ({c.Name}) = {Stringify(c.State)}")),
568-
newState.IsHidden);
568+
string.Join(" ", newState.Commands.Select(c => $"{c.Name} ({c.DisplayName}) = {Stringify(c.State)}")));
569569

570570
static string Stringify(object? o) => o switch
571571
{

0 commit comments

Comments
 (0)