mirror of
https://github.com/hanskokx/arcane_framework.git
synced 2026-05-14 02:19:08 +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)
|
// Send logs to registered interface(s)
|
||||||
for (final LoggingInterface i in I._interfaces) {
|
for (final LoggingInterface i in I._interfaces) {
|
||||||
|
if (initialized) {
|
||||||
i.log(
|
i.log(
|
||||||
message,
|
message,
|
||||||
level: level,
|
level: level,
|
||||||
@@ -248,6 +249,7 @@ class ArcaneLogger {
|
|||||||
extra: extra,
|
extra: extra,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
_logStreamController.add(
|
_logStreamController.add(
|
||||||
"$message ${{
|
"$message ${{
|
||||||
|
|||||||
Reference in New Issue
Block a user