Skip to content

Commit 6c52abf

Browse files
committed
fix: Don't set severity level for text log.
1 parent 5c3dd96 commit 6c52abf

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/logger.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,6 @@ export function getModifiedData(
142142
}
143143
} else {
144144
dataWithContext = getTextWithContext(processedData, currentContext);
145-
if (stderr) {
146-
dataWithContext[SEVERITY] = 'ERROR';
147-
}
148145
}
149146

150147
return JSON.stringify(dataWithContext) + '\n';

test/logger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ describe('getModifiedData', () => {
135135
const modifiedData = getModifiedData(sampleText, undefined, true);
136136
const expectedOutput =
137137
JSON.stringify(
138-
Object.assign(JSON.parse(expectedTextOutput), {severity: 'ERROR'})
138+
Object.assign(JSON.parse(expectedTextOutput))
139139
) + '\n';
140140
assert.equal(modifiedData, expectedOutput);
141141
});

0 commit comments

Comments
 (0)