From 95da6e9e57660f64d61fd652dd2060f7a0761ea5 Mon Sep 17 00:00:00 2001 From: Daan Vanden Bosch Date: Tue, 29 Oct 2019 15:26:10 +0100 Subject: [PATCH] Logging when duplicate events are encountered. --- src/quest_editor/stores/model_conversion.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/quest_editor/stores/model_conversion.ts b/src/quest_editor/stores/model_conversion.ts index e763f343..70aca870 100644 --- a/src/quest_editor/stores/model_conversion.ts +++ b/src/quest_editor/stores/model_conversion.ts @@ -88,6 +88,9 @@ function build_event_dags(dat_events: readonly DatEvent[]): QuestEventDagModel[] if (data && data.event) { event_model = data.event; + logger.warn( + `Ignored duplicate event #${data.event.id} for section ${data.event.section_id} of area ${data.event.area_id}.`, + ); } else { event_model = new QuestEventModel( event.id,