Added two logging statements.

This commit is contained in:
Oliver Hamlet
2014-12-14 17:44:21 +00:00
parent 80e45e0f2d
commit 376839f643
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -675,6 +675,7 @@ namespace loot {
unordered_map<std::string, uintmax_t> tempMap;
std::vector<Plugin*> groupPlugins;
//First calculate the mean plugin size. Store it temporarily in a map to reduce filesystem lookups and file size recalculation.
BOOST_LOG_TRIVIAL(trace) << "Scanning for plugins in " << this->DataPath();
for (fs::directory_iterator it(this->DataPath()); it != fs::directory_iterator(); ++it) {
if (fs::is_regular_file(it->status()) && this->IsValidPlugin(it->path().filename().string())) {
uintmax_t fileSize = fs::file_size(it->path());
+1
View File
@@ -1011,6 +1011,7 @@ namespace loot {
}
void Handler::SendProgressUpdate(CefRefPtr<CefFrame> frame, const std::string& message) {
BOOST_LOG_TRIVIAL(trace) << "Sending progress update: " << message;
frame->ExecuteJavaScript("showProgress('" + message + "');", frame->GetURL(), 0);
}