windows-default-trace-log-off-20050827

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)
This commit is contained in:
Jeffrey Altman 2005-08-28 04:43:55 +00:00
parent c0fea63408
commit b9fc404bdf
2 changed files with 9 additions and 2 deletions

View 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}

View 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);
if ((TraceOption & 0x8)
#ifdef DEBUG
|| 1
#endif
) {
osi_LogEnable(afsd_logp);
}
logReady = 1;
osi_Log0(afsd_logp, "Log init");