Skip to content

Commit

Permalink
Consume DevOps Logging from eng\common\scripts\logging.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
chidozieononiwu committed Sep 26, 2020
1 parent 875a362 commit 6ba524c
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions eng/scripts/Verify-And-Merge-PRs.ps1
Original file line number Diff line number Diff line change
@@ -1,29 +1,10 @@
param(
$PRDataArtifactPath,
$AuthToken,
$ShouldMerge,
[switch]$devOpsLogging = $false
$ShouldMerge
)

function LogWarning
{
if ($devOpsLogging) {
Write-Host "##vso[task.LogIssue type=warning;]$args"
}
else {
Write-Warning "$args"
}
}

function LogError
{
if ($devOpsLogging) {
Write-Host "##vso[task.logissue type=error]$args"
}
else {
Write-Error "$args"
}
}
. "${PSScriptRoot}..\common\scripts\logging.ps1"

$ReadyForMerge = $true
$mergablePRs = @()
Expand Down

0 comments on commit 6ba524c

Please sign in to comment.