Skip to content

Commit 478c341

Browse files
committed
[core] Make it easier when profiling release builds
Don't write all log statements to the console in release mode as it makes it a bit harder to perf profile things.
1 parent 927fb1b commit 478c341

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/SampleClient/main.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@ static void Main (string[] args)
5555

5656
private static async Task StartEngine ()
5757
{
58+
#if DEBUG
5859
Logger.Factory = (string className) => new TextLogger (Console.Out, className);
59-
60+
#endif
6061
int port;
6162
Torrent torrent = null;
6263
// Ask the user what port they want to use for incoming connections

0 commit comments

Comments
 (0)