Skip to content

Commit

Permalink
Enabling debug logging on Unity
Browse files Browse the repository at this point in the history
  • Loading branch information
mayuki committed Jul 11, 2024
1 parent 16b6319 commit da9c862
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 da9c862

Please sign in to comment.