We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c3dd96 commit 6c52abfCopy full SHA for 6c52abf
src/logger.ts
@@ -142,9 +142,6 @@ export function getModifiedData(
142
}
143
} else {
144
dataWithContext = getTextWithContext(processedData, currentContext);
145
- if (stderr) {
146
- dataWithContext[SEVERITY] = 'ERROR';
147
- }
148
149
150
return JSON.stringify(dataWithContext) + '\n';
test/logger.ts
@@ -135,7 +135,7 @@ describe('getModifiedData', () => {
135
const modifiedData = getModifiedData(sampleText, undefined, true);
136
const expectedOutput =
137
JSON.stringify(
138
- Object.assign(JSON.parse(expectedTextOutput), {severity: 'ERROR'})
+ Object.assign(JSON.parse(expectedTextOutput))
139
) + '\n';
140
assert.equal(modifiedData, expectedOutput);
141
});
0 commit comments