mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Improved CEF debugging.
This commit is contained in:
@@ -38,7 +38,9 @@ loot.query = function(request) {
|
||||
})
|
||||
}
|
||||
function processCefError(err) {
|
||||
console.log(err);
|
||||
/* Error.stack seems to be Chromium-specific. It gives a lot more useful
|
||||
info than just the error message. */
|
||||
console.log(err.stack);
|
||||
showMessageBox('error', 'Error', err.message);
|
||||
}
|
||||
|
||||
|
||||
@@ -174,6 +174,10 @@ namespace loot {
|
||||
}
|
||||
BOOST_LOG_TRIVIAL(info) << "LOOT Version: " << g_version_major << "." << g_version_minor << "." << g_version_patch;
|
||||
|
||||
// The CEF debug log is appended to, not overwritten, so it gets really long.
|
||||
// Delete the current CEF debug log.
|
||||
fs::remove(g_path_local / "CEFDebugLog.txt");
|
||||
|
||||
//Set the locale to get encoding and language conversions working correctly.
|
||||
BOOST_LOG_TRIVIAL(debug) << "Initialising language settings.";
|
||||
//Defaults in case language string is empty or setting is missing.
|
||||
|
||||
Reference in New Issue
Block a user