Skip to content

Remove unnecessary verbose message from ConvertTo-Json  #7486

Closed

Description

In #6392 this line below was added to the ConvertTo-Json cmdlet.

WriteVerbose(StringUtil.Format(UtilityCommonStrings.ConvertToJsonProcessValueVerboseMessae, t.Name, depth));

This produces unnecessarily verbose output when converting complex objects to json.

In my opinion, this verbosity doesn't add any value and clutters up script output.

VERBOSE: Processing object of type [OrderedDictionary] at depth 0
VERBOSE: Processing object of type [PSCustomObject] at depth 1
VERBOSE: Processing object of type [OrderedDictionary] at depth 0
VERBOSE: Processing object of type [PSCustomObject] at depth 1

I propose either removing this entry entirely or changing it to WriteDebug to keep the noise down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugIssue has been identified as a bug in the productResolution-FixedThe issue is fixed.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions