Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Remove unnecessary verbose message from ConvertTo-Json  #7486

Copy link
Copy link
@devblackops

Description

@devblackops
Issue body actions

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.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.