Browse Source

* Clean unused tmp, fix spelling of the comment

tags/2.3
sin_sin 9 years ago
parent
commit
8a1ea1eee4
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      shadowsocks-csharp/Controller/Logging.cs

+ 1
- 2
shadowsocks-csharp/Controller/Logging.cs View File

@@ -17,7 +17,6 @@ namespace Shadowsocks.Controller
string temppath = Path.GetTempPath();
LogFile = Path.Combine(temppath, "shadowsocks.log");
FileStream fs = new FileStream(LogFile, FileMode.Append);
TextWriter tmp = Console.Out;
StreamWriterWithTimestamp sw = new StreamWriterWithTimestamp(fs);
sw.AutoFlush = true;
Console.SetOut(sw);
@@ -64,7 +63,7 @@ namespace Shadowsocks.Controller
}
// Simply extened System.IO.StreamWriter for adding timestamp workaround
// Simply extended System.IO.StreamWriter for adding timestamp workaround
public class StreamWriterWithTimestamp : StreamWriter
{
public StreamWriterWithTimestamp(Stream stream) : base(stream)


Loading…
Cancel
Save