From 4f1cec8987b6ff3a4c13f1716e6dd92b65e4099c Mon Sep 17 00:00:00 2001 From: Florian Bacher Date: Tue, 9 Jan 2024 09:58:05 +0100 Subject: [PATCH] use Debug class to log exceptions Signed-off-by: Florian Bacher --- src/OpenFeature/EventExecutor.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/OpenFeature/EventExecutor.cs b/src/OpenFeature/EventExecutor.cs index 6baaa7a8..01a3451f 100644 --- a/src/OpenFeature/EventExecutor.cs +++ b/src/OpenFeature/EventExecutor.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics; using System.Threading; using System.Threading.Channels; using System.Threading.Tasks; @@ -214,7 +215,7 @@ private void EmitOnRegistration(FeatureProviderReference provider, ProviderEvent } catch (Exception exc) { - Console.WriteLine(exc); + Debug.WriteLine(exc); } } } @@ -319,7 +320,7 @@ private void InvokeEventHandler(EventHandlerDelegate eventHandler, Event e) } catch (Exception exc) { - Console.WriteLine(exc); + Debug.WriteLine(exc); } }