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)
Value : TraceOption
-Type : DWORD {0-7}
+Type : DWORD {0-15}
Default : 0
Enables logging of debug output to the Windows Event Log.
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}
/* 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");