From a8df30016b6a5bac4c0bc7bb77879e01699a6924 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 23 Feb 2021 15:36:36 +0100 Subject: [PATCH] mark force-finished log items when app closes --- src/logging/BaseLogger.js | 1 + src/logging/LogItem.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/logging/BaseLogger.js b/src/logging/BaseLogger.js index cbc83542..f5b97d37 100644 --- a/src/logging/BaseLogger.js +++ b/src/logging/BaseLogger.js @@ -115,6 +115,7 @@ export class BaseLogger { // about the duration of the item, etc ... const serialized = openItem.serialize(new LogFilter(), 0); if (serialized) { + serialized.f = true; //(f)orced this._persistItem(serialized); } } catch (err) { diff --git a/src/logging/LogItem.js b/src/logging/LogItem.js index ece2034d..02e388d1 100644 --- a/src/logging/LogItem.js +++ b/src/logging/LogItem.js @@ -139,6 +139,7 @@ export class LogItem { // (c)hildren item.c = children; } + // (f)orced can also be set on an item by the logger return item; }