Explorar o código

commit: disable logging

HOME %!s(int64=5) %!d(string=hai) anos
pai
achega
ca8f4c73c3
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      SMBServer/ServerUI.cs

+ 2 - 1
SMBServer/ServerUI.cs

@@ -101,9 +101,10 @@ namespace SMBServer
             GSSProvider securityProvider = new GSSProvider(authenticationMechanism);
             m_server = new SMBLibrary.Server.SMBServer(shares, securityProvider);
             m_logWriter = new LogWriter();
+
             // The provided logging mechanism will synchronously write to the disk during server activity.
             // To maximize server performance, you can disable logging by commenting out the following line.
-            m_server.LogEntryAdded += new EventHandler<LogEntry>(m_logWriter.OnLogEntryAdded);
+            //m_server.LogEntryAdded += new EventHandler<LogEntry>(m_logWriter.OnLogEntryAdded);
 
             try
             {