Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/core/StarLogging.hpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-08-31 04:55:36 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-08-31 04:55:36 +1000
commit51d6e63dfe5bce9812886e0ece5fa62975f38d77 (patch)
tree58ad00e05e9d0f8e2f08cd725636d4fa8a81b7a7 /source/core/StarLogging.hpp
parent182d3052c5da17701b6407164a6505b8aeafa867 (diff)
Only do spatial logging when spatial log is observed
Diffstat (limited to 'source/core/StarLogging.hpp')
-rw-r--r--source/core/StarLogging.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/core/StarLogging.hpp b/source/core/StarLogging.hpp
index 1ab21a9..6e909fb 100644
--- a/source/core/StarLogging.hpp
+++ b/source/core/StarLogging.hpp
@@ -147,11 +147,15 @@ public:
static void clear();
+ static bool observed();
+ static void setObserved(bool observed);
+
private:
static Mutex s_mutex;
static StringMap<Deque<Line>> s_lines;
static StringMap<Deque<Point>> s_points;
static StringMap<Deque<LogText>> s_logText;
+ static bool s_observed;
};
template <typename... Args>