mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 07:20:11 +00:00
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:
parent
c0fea63408
commit
b9fc404bdf
@ -284,7 +284,7 @@ Variable: HardDeadtimeout
|
|||||||
|
|
||||||
|
|
||||||
Value : TraceOption
|
Value : TraceOption
|
||||||
Type : DWORD {0-7}
|
Type : DWORD {0-15}
|
||||||
Default : 0
|
Default : 0
|
||||||
|
|
||||||
Enables logging of debug output to the Windows Event Log.
|
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 1 enables logging of events captured by the AFS Client Service.
|
||||||
Bit 2 enables real-time viewing of "fs trace" logging with DbgView
|
Bit 2 enables real-time viewing of "fs trace" logging with DbgView
|
||||||
or similar tools.
|
or similar tools.
|
||||||
|
Bit 3 enables "fs trace" logging on startup.
|
||||||
|
|
||||||
Value : AllSubmount
|
Value : AllSubmount
|
||||||
Type : DWORD {0, 1}
|
Type : DWORD {0, 1}
|
||||||
|
@ -653,7 +653,13 @@ int afsd_InitCM(char **reasonP)
|
|||||||
/* setup and enable debug log */
|
/* setup and enable debug log */
|
||||||
afsd_logp = osi_LogCreate("afsd", traceBufSize);
|
afsd_logp = osi_LogCreate("afsd", traceBufSize);
|
||||||
afsi_log("osi_LogCreate log addr %x", (int)afsd_logp);
|
afsi_log("osi_LogCreate log addr %x", (int)afsd_logp);
|
||||||
|
if ((TraceOption & 0x8)
|
||||||
|
#ifdef DEBUG
|
||||||
|
|| 1
|
||||||
|
#endif
|
||||||
|
) {
|
||||||
osi_LogEnable(afsd_logp);
|
osi_LogEnable(afsd_logp);
|
||||||
|
}
|
||||||
logReady = 1;
|
logReady = 1;
|
||||||
|
|
||||||
osi_Log0(afsd_logp, "Log init");
|
osi_Log0(afsd_logp, "Log init");
|
||||||
|
Loading…
Reference in New Issue
Block a user