From 8a1ea1eee4f89619b2cf79c718535fc3bd4bf2a3 Mon Sep 17 00:00:00 2001 From: sin_sin Date: Thu, 8 Jan 2015 10:29:38 +0800 Subject: [PATCH] * Clean unused tmp, fix spelling of the comment --- shadowsocks-csharp/Controller/Logging.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/shadowsocks-csharp/Controller/Logging.cs b/shadowsocks-csharp/Controller/Logging.cs index 208051e6..81f16dd8 100755 --- a/shadowsocks-csharp/Controller/Logging.cs +++ b/shadowsocks-csharp/Controller/Logging.cs @@ -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)