Dokan logging
This commit is contained in:
BIN
3rd_party/vc_redist.x64.exe
vendored
Normal file
BIN
3rd_party/vc_redist.x64.exe
vendored
Normal file
Binary file not shown.
@@ -17,6 +17,7 @@ int APIENTRY wWinMain(HINSTANCE hInstance,
|
||||
{
|
||||
UNREFERENCED_PARAMETER(hPrevInstance);
|
||||
UNREFERENCED_PARAMETER(lpCmdLine);
|
||||
|
||||
CefEnableHighDPISupport();
|
||||
|
||||
CefMainArgs mainArgs(hInstance);
|
||||
@@ -29,12 +30,8 @@ int APIENTRY wWinMain(HINSTANCE hInstance,
|
||||
CefSettings settings;
|
||||
settings.no_sandbox = true;
|
||||
settings.remote_debugging_port = 8080;
|
||||
// HACK When logging is enabled, drive access is really slow
|
||||
FilePath("Debug.log").DeleteFile();
|
||||
#ifdef _DEBUG
|
||||
settings.single_process = true;
|
||||
#else
|
||||
settings.log_severity = LOGSEVERITY_DISABLE;
|
||||
#endif
|
||||
CefInitialize(mainArgs, settings, app, nullptr);
|
||||
|
||||
|
@@ -871,7 +871,7 @@ public:
|
||||
_dokanOptions.Version = DOKAN_VERSION;
|
||||
_dokanOptions.ThreadCount = 0; // use default
|
||||
#ifdef _DEBUG
|
||||
_dokanOptions.Options = DOKAN_OPTION_DEBUG;
|
||||
_dokanOptions.Options = DOKAN_OPTION_DEBUG | DOKAN_OPTION_DEBUG_LOG;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user