Skip to content

Commit 689a736

Browse files
committed
debug messaging
1 parent eb8d0d4 commit 689a736

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ServiceNow/Private/Invoke-ServiceNowRestMethod.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ function Invoke-ServiceNowRestMethod {
149149

150150
$response = Invoke-WebRequest @params
151151

152+
Write-Debug ($response | ConvertTo-Json)
153+
152154
# TODO: this could use some work
153155
# checking for content is good, but at times we'll get content that's not valid
154156
# eg. html content when a dev instance is hibernating
@@ -193,7 +195,7 @@ function Invoke-ServiceNowRestMethod {
193195
$end = if ( $totalRecordCount -lt $setPoint ) {
194196
$totalRecordCount
195197
}
196-
else {
198+
else {
197199
$setPoint
198200
}
199201

0 commit comments

Comments
 (0)