Skip to content

Commit

Permalink
Disable debug logging in the sample applications
Browse files Browse the repository at this point in the history
  • Loading branch information
Fusion86 committed Jan 5, 2022
1 parent 5cf8ef7 commit 03ff267
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/ScrcpyNet.Sample.Avalonia/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ public static void Main(string[] args)
{
ffmpeg.RootPath = "ScrcpyNet";

// Enabling debug logging completely obliterates performance
Log.Logger = new LoggerConfiguration()
.MinimumLevel.Debug()
//.MinimumLevel.Debug()
.WriteTo.Console()
.WriteTo.Debug()
.CreateLogger();
Expand Down
3 changes: 2 additions & 1 deletion src/ScrcpyNet.Sample.Wpf/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ protected override void OnStartup(StartupEventArgs e)
{
ffmpeg.RootPath = "ScrcpyNet";

// Enabling debug logging completely obliterates performance
Log.Logger = new LoggerConfiguration()
.MinimumLevel.Debug()
//.MinimumLevel.Debug()
.WriteTo.Console()
.WriteTo.Debug()
.CreateLogger();
Expand Down

0 comments on commit 03ff267

Please sign in to comment.