diff --git a/src/plugins/logs/index.js b/src/plugins/logs/index.js index 6ba92cd2d..bac1b1cf2 100644 --- a/src/plugins/logs/index.js +++ b/src/plugins/logs/index.js @@ -317,10 +317,6 @@ export function processEntry( } { const {icon, style} = LOG_TYPES[(entry.type: string)] || LOG_TYPES.debug; - // clean message - const message = entry.message.trim(); - entry.type === 'error'; - // build the item, it will either be batched or added straight away return { entry, @@ -340,7 +336,9 @@ export function processEntry( ), }, message: { - value: {message}, + value: ( + {entry.message} + ), }, tag: { value: {entry.tag}, @@ -363,7 +361,7 @@ export function processEntry( isFilterable: true, }, }, - height: getLineCount(message) * 15 + 10, // 15px per line height + 8px padding + height: getLineCount(entry.message) * 15 + 10, // 15px per line height + 8px padding style, type: entry.type, filterValue: entry.message, @@ -470,10 +468,9 @@ export default class LogTable extends FlipperDevicePlugin< } incrementCounterIfNeeded = (entry: DeviceLogEntry) => { - const message = entry.message.trim(); let counterUpdated = false; const counters = this.state.counters.map(counter => { - if (message.match(counter.expression)) { + if (entry.message.match(counter.expression)) { counterUpdated = true; if (counter.notify) { new window.Notification(`${counter.label}`, {