Skip to content

Commit 7209d25

Browse files
Reorder error and warning log line processing (#43456)
Co-authored-by: Wes Haggard <[email protected]>
1 parent 727f0b9 commit 7209d25

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

eng/common/scripts/logging.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,12 @@ function LogJobFailure() {
114114

115115
function ProcessMsBuildLogLine($line) {
116116
if (Test-SupportsDevOpsLogging) {
117-
if ($line -like "*: warning*") {
118-
return ("##vso[task.LogIssue type=warning;]$line" -replace "`n", "%0D%0A")
119-
}
120-
elseif ($line -like "*: error*") {
117+
if ($line -like "*: error*") {
121118
return ("##vso[task.LogIssue type=error;]$line" -replace "`n", "%0D%0A")
122119
}
120+
elseif ($line -like "*: warning*") {
121+
return ("##vso[task.LogIssue type=warning;]$line" -replace "`n", "%0D%0A")
122+
}
123123
}
124124
return $line
125125
}

0 commit comments

Comments
 (0)