]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-windows-default-trace-log-off-20050827
authorJeffrey Altman <jaltman@secure-endpoints.com>
Sun, 28 Aug 2005 04:45:14 +0000 (04:45 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Sun, 28 Aug 2005 04:45:14 +0000 (04:45 +0000)
Now that OAFW is ready for a stable series, we will default "fs trace"
to off on non-Debug builds.   It can be set to on via the TraceOption
registry value.  (see registry.txt)

(cherry picked from commit b9fc404bdf16fc3a61f13bffcaadc5d598d02cbd)

doc/txt/winnotes/registry.txt
src/WINNT/afsd/afsd_init.c

index 3177c490386616c4cb6bb7e379588bc34a6dbf40..76650c6ba4f776115cbace95dc3cb549d4b3a1ad 100644 (file)
@@ -284,7 +284,7 @@ Variable: HardDeadtimeout
 
 
 Value  : TraceOption
-Type   : DWORD {0-7}
+Type   : DWORD {0-15}
 Default : 0
 
   Enables logging of debug output to the Windows Event Log.
@@ -293,6 +293,7 @@ Default : 0
   Bit 1 enables logging of events captured by the AFS Client Service.
   Bit 2 enables real-time viewing of "fs trace" logging with DbgView 
   or similar tools.
+  Bit 3 enables "fs trace" logging on startup.
 
 Value   : AllSubmount
 Type    : DWORD {0, 1}
index 151c289e8b4c044b4de60db3921fcf8d2f57fb75..83e9d1e21d9ed9466a2cf6131bf52f293f653f99 100644 (file)
@@ -653,7 +653,13 @@ int afsd_InitCM(char **reasonP)
     /* setup and enable debug log */
     afsd_logp = osi_LogCreate("afsd", traceBufSize);
     afsi_log("osi_LogCreate log addr %x", (int)afsd_logp);
-    osi_LogEnable(afsd_logp);
+    if ((TraceOption & 0x8)
+#ifdef DEBUG
+        || 1
+#endif
+        ) {
+       osi_LogEnable(afsd_logp);
+    }
     logReady = 1;
 
     osi_Log0(afsd_logp, "Log init");