ui: fix sentry log check
This commit is contained in:
parent
c42391c3da
commit
4f8dd444ff
1 changed files with 2 additions and 2 deletions
|
|
@ -15,7 +15,7 @@ export function processLog(log: any): UnifiedLog[] {
|
|||
} else if (isDynatraceLog(log)) {
|
||||
return log.map(processDynatraceLog);
|
||||
} else {
|
||||
throw new Error("Unknown log format");
|
||||
console.error("Unknown log format");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -37,7 +37,7 @@ function isElasticLog(log: any): boolean {
|
|||
}
|
||||
|
||||
function isSentryLog(log: any): boolean {
|
||||
return log && log[0].id && log[0].message && log[0].title;
|
||||
return log && 'id' in log[0] && 'message' in log[0] && 'title' in log[0];
|
||||
}
|
||||
|
||||
function processDynatraceLog(log: any): UnifiedLog {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue