mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
delay log if not loaded yet
This commit is contained in:
1 parent
9e9596ce40
commit
02ca62b7e3
2 files changed
+8
-3
No files matched your search
@@ -103,6 +103,12 @@ internal static class Logger
|
||||
|
||||
if (level == LogLevel.Message) NowDetailedErrorLog.Clear();
|
||||
}
|
||||
|
||||
if (!Main.Loaded)
|
||||
{
|
||||
LateTask.New(() => CustomLogger.Instance.Log(level.ToString(), LogText, multiLine), 1f, "Log Retry");
|
||||
return;
|
||||
}
|
||||
|
||||
CustomLogger.Instance.Log(level.ToString(), LogText, multiLine);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user