Skip to content

Commit

Permalink
No need to convert Body to JSON -- it already is
Browse files Browse the repository at this point in the history
  • Loading branch information
HowardWolosky committed Dec 5, 2018
1 parent e335c2c commit 6bca28c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GitHubCore.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ function Invoke-GHRestMethod
Write-Log -Message "Request includes a body." -Level Verbose
if ($LogRequestBody)
{
Write-Log -Message (ConvertTo-Json -InputObject $Body -Depth 20) -Level Verbose
Write-Log -Message $Body -Level Verbose
}
}

Expand Down Expand Up @@ -245,7 +245,7 @@ function Invoke-GHRestMethod
Write-Log -Message "Request includes a body." -Level Verbose
if (Get-GitHubConfiguration -Name LogRequestBody)
{
Write-Log -Message (ConvertTo-Json -InputObject $Body -Depth 20) -Level Verbose
Write-Log -Message $Body -Level Verbose
}
}

Expand Down

0 comments on commit 6bca28c

Please sign in to comment.