From da9c862bc718af682da9dcdb07eb4a2636ea08ae Mon Sep 17 00:00:00 2001 From: Mayuki Sawatari Date: Thu, 11 Jul 2024 18:25:15 +0900 Subject: [PATCH] Enabling debug logging on Unity --- src/YetAnotherHttpHandler/YahaEventSource.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/YetAnotherHttpHandler/YahaEventSource.cs b/src/YetAnotherHttpHandler/YahaEventSource.cs index d0c59ad..6457aed 100644 --- a/src/YetAnotherHttpHandler/YahaEventSource.cs +++ b/src/YetAnotherHttpHandler/YahaEventSource.cs @@ -9,7 +9,12 @@ namespace Cysharp.Net.Http #if UNITY_2021_1_OR_NEWER internal class YahaEventSource { - public bool IsEnabled() => false; + public bool IsEnabled() +#if YAHA_ENABLE_DEBUG_TRACING + => true; +#else + => false; +#endif public static YahaEventSource Log { get; } = new();