Improved CEF debugging.

This commit is contained in:
WrinklyNinja
2014-08-21 11:13:53 +01:00
parent bba87b1ebc
commit 837d193087
2 changed files with 7 additions and 1 deletions
+3 -1
View File
@@ -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);
}
+4
View File
@@ -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.