From 63aadfb4975a6005cbb3ca58475db5c7544dd109 Mon Sep 17 00:00:00 2001 From: Marc Durdin Date: Mon, 21 Dec 2020 14:52:05 +1100 Subject: [PATCH] fix(developer): debug.log created unexpectedly Fixes #4110. CEF will create a debug.log file in the current folder if it encounters an error. Instead, it should be written to Keyman's diag folder. This fix is for both Keyman Developer and Keyman for Windows. --- windows/src/global/delphi/chromium/Keyman.System.CEFManager.pas | 1 + 1 file changed, 1 insertion(+) diff --git a/windows/src/global/delphi/chromium/Keyman.System.CEFManager.pas b/windows/src/global/delphi/chromium/Keyman.System.CEFManager.pas index 3e36a19b2e..f3c0fcc728 100644 --- a/windows/src/global/delphi/chromium/Keyman.System.CEFManager.pas +++ b/windows/src/global/delphi/chromium/Keyman.System.CEFManager.pas @@ -92,6 +92,7 @@ begin GlobalCEFApp.CheckCEFFiles := False; + GlobalCEFApp.LogFile := TKeymanPaths.ErrorLogPath + ExtractFileName(ChangeFileExt(ParamStr(0),''))+'-cef.log'; GlobalCEFApp.LogSeverity := LOGSEVERITY_ERROR; // We run in debug mode when TIKE debug mode flag is set, so that we can