Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LoggingStateDecorator class #5

Closed
FlxGen opened this issue Jul 26, 2018 · 3 comments
Closed

LoggingStateDecorator class #5

FlxGen opened this issue Jul 26, 2018 · 3 comments

Comments

@FlxGen
Copy link

FlxGen commented Jul 26, 2018

FYI - on a Xamarin.iOS project, System.Diagnostics.Trace.WriteLine(message, transfer.ToString()) in TftpTrace class causes transfers to be very slow in a debug session. I believe its because of the overhead required to print the transfer messages on the debug screen in Visual Studio. I've done some testing and transferring 800mb with WriteLine takes ~10 minutes vs ~80 minutes with WriteLine.

I created a public bool called WriteTrace in TftpServer and TftpClient then passed that to LoggingStateDecorator with if (trace) above TftpTrace.Trace(). May want to consider it in future releases.

@Callisto82
Copy link
Owner

Tracing has now been disabled by default. You can re-enable it by setting TftpTrace.Enabled to true.

@clefranc
Copy link

Hi Michael,
Is TftpTrace.Enabled now set to true by default? Have to disable from NuGet.

Christian

@Callisto82
Copy link
Owner

Callisto82 commented Jul 16, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants