From 7da91766484ab2dc911322bb385e3dca9b3e6eb5 Mon Sep 17 00:00:00 2001 From: sebastian-heinz Date: Sat, 8 Jan 2022 13:36:15 +0800 Subject: [PATCH] dont fail on existing configuration --- .version | 2 +- Arrowgene.Logging/LogProvider.cs | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.version b/.version index 8cfbc90..8428158 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -1.1.1 \ No newline at end of file +1.1.2 \ No newline at end of file diff --git a/Arrowgene.Logging/LogProvider.cs b/Arrowgene.Logging/LogProvider.cs index 87148f2..3654721 100644 --- a/Arrowgene.Logging/LogProvider.cs +++ b/Arrowgene.Logging/LogProvider.cs @@ -139,6 +139,11 @@ public static void Configure(Type type, object configuration) /// public static void Configure(string identity, object configuration) { + if (Configurations.ContainsKey(identity)) + { + return; + } + Configurations.Add(identity, configuration); }