mirror of
https://github.com/hanskokx/arcane_framework.git
synced 2026-05-14 10:29:06 +02:00
Only send log messages to the LoggingInterfaces if the logging service has been initialized
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
@@ -240,6 +240,7 @@ class ArcaneLogger {
|
||||
|
||||
// Send logs to registered interface(s)
|
||||
for (final LoggingInterface i in I._interfaces) {
|
||||
if (initialized) {
|
||||
i.log(
|
||||
message,
|
||||
level: level,
|
||||
@@ -248,6 +249,7 @@ class ArcaneLogger {
|
||||
extra: extra,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
_logStreamController.add(
|
||||
"$message ${{
|
||||
|
||||
Reference in New Issue
Block a user