Skip to content

Commit

Permalink
Merge pull request #80 from Cysharp/feature/YAHA_ENABLE_DEBUG_TRACING
Browse files Browse the repository at this point in the history
Enabling debug logging on Unity
  • Loading branch information
mayuki authored Jul 11, 2024
2 parents 16b6319 + da9c862 commit a09131c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/YetAnotherHttpHandler/YahaEventSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit a09131c

Please sign in to comment.