fix: Suppress verbose event logs

This commit is contained in:
2025-02-21 21:43:09 +08:00
parent 0adea1a325
commit d986418927

View File

@@ -163,7 +163,8 @@ namespace Cryville.EEW.Unity {
readonly ConcurrentQueue<Action> _uiActionQueue = new();
ReportViewModel _latestHistoryReport;
void OnReported(object sender, ReportViewModel e) {
Debug.Log(e);
if (e.Model is Exception && e.Model is not SourceWorkerNetworkException)
Debug.LogError(e);
_ongoingReportManager.Report(e);
_uiActionQueue.Enqueue(() => {
m_mapElementManager.SetSelected(e);