mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
mark force-finished log items when app closes
This commit is contained in:
parent
17451b7bd6
commit
a8df30016b
@ -115,6 +115,7 @@ export class BaseLogger {
|
|||||||
// about the duration of the item, etc ...
|
// about the duration of the item, etc ...
|
||||||
const serialized = openItem.serialize(new LogFilter(), 0);
|
const serialized = openItem.serialize(new LogFilter(), 0);
|
||||||
if (serialized) {
|
if (serialized) {
|
||||||
|
serialized.f = true; //(f)orced
|
||||||
this._persistItem(serialized);
|
this._persistItem(serialized);
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
@ -139,6 +139,7 @@ export class LogItem {
|
|||||||
// (c)hildren
|
// (c)hildren
|
||||||
item.c = children;
|
item.c = children;
|
||||||
}
|
}
|
||||||
|
// (f)orced can also be set on an item by the logger
|
||||||
return item;
|
return item;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user