Skip to content

[13.5] Trace logging on aspire doctor causes weird indentation #19017

Description

@afscrome

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

If you run aspire doctor -l trace some of the log lines get logged weirdly. ⠚ Checking Aspire environment... can end up being logged at the start of a log line, messing up alignment of timestamps. In some cases, this can even happen in the middle of log lines.

Image

Expected Behavior

When a verbose log level is used, you should probably supress any progress messages that are shown when logging is not enabled as the detailed logs themselves give you better progress messages.

Steps To Reproduce

aspire doctor -l trace

Exceptions (if any)

No response

Aspire doctor output

Aspire Environment Check
========================

Aspire
  ⚠️ Aspire CLI version 13.5.0-preview.1.26405.1 (channel: daily) is out of date. Latest version is 13.5.0-preview.1.26405.2 (channel: prerelease)  
       Run 'aspire update' to update Aspire CLI.       
  ✅ Developer Control Plane (DCP) connection health checks succeeded  

AppHost
  ✅ AppHost version 13.5.0-preview.1.26405.1 (app\Trayport.Aspire.AppHost\Trayport.Aspire.AppHost.csproj)  

.NET SDK
  ✅ .NET 10.0.302 installed (x64)  

Container Runtime
  ✅ Docker v29.6.2: running (auto-detected (default)) ← active  

Environment
  ✅ Operating system: Windows 10.0.26100.0  
  ✅ HTTPS development certificate is trusted  

Development Tools
  ✅ Aspire extension for VS Code is installed  

Summary: 7 passed, 1 warnings, 0 failed
For detailed prerequisites: https://aka.ms/aspire-prerequisites

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions