mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[server/logging] fix the order we expect tags to be in
This commit is contained in:
parent
dbe5f6fb72
commit
76e09e6740
2 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ function stubEconnresetEvent() {
|
|||
event: 'error',
|
||||
pid: 1234,
|
||||
timestamp: Date.now(),
|
||||
tags: ['error', 'client', 'connection'],
|
||||
tags: ['connection', 'client', 'error'],
|
||||
data: error
|
||||
};
|
||||
}
|
||||
|
|
|
@ -24,7 +24,7 @@ export class LogInterceptor extends Stream.Transform {
|
|||
* @param {object} - log event
|
||||
*/
|
||||
downgradeIfEconnreset(event) {
|
||||
const isClientError = doTagsMatch(event, ['error', 'client', 'connection']);
|
||||
const isClientError = doTagsMatch(event, ['connection', 'client', 'error']);
|
||||
const isEconnreset = isClientError && get(event, 'data.errno') === 'ECONNRESET';
|
||||
|
||||
if (!isEconnreset) return null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue