Fixing missing raw message
This commit is contained in:
@ -168,13 +168,15 @@ export class LoggingBase {
|
||||
a("]: ");
|
||||
|
||||
|
||||
let mb = "";
|
||||
let raw: string[] = [];
|
||||
|
||||
const formatted: FormattedLine[] = [];
|
||||
let line: FormattedLine;
|
||||
const newLine = () => {
|
||||
if (line && line.length > 0)
|
||||
if (line && line.length > 0) {
|
||||
formatted.push(line);
|
||||
raw.push(line.map(e => e.text).join(""));
|
||||
}
|
||||
line = [...prefix];
|
||||
}
|
||||
newLine();
|
||||
@ -209,9 +211,6 @@ export class LoggingBase {
|
||||
|
||||
newLine();
|
||||
|
||||
let raw = removeColors(mb).split("\n");
|
||||
|
||||
|
||||
let msg: Message = {
|
||||
date: new Date(),
|
||||
file,
|
||||
|
Reference in New Issue
Block a user