Skip to content

Commit

Permalink
Consume DevOps Logging from eng\common\scripts\logging.ps1 (#1039)
Browse files Browse the repository at this point in the history
  • Loading branch information
chidozieononiwu authored and benbp committed Dec 1, 2020
1 parent e151864 commit e297d53
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 e297d53

Please sign in to comment.