Added more debug logging statements.

This commit is contained in:
WrinklyNinja
2014-06-26 17:18:49 +01:00
parent 5c11fcada1
commit b1d3f566cf
2 changed files with 6 additions and 1 deletions
+1
View File
@@ -199,6 +199,7 @@ namespace loot {
// Now try to access the repository if it exists, or clone one if it doesn't.
git.ui_message = "An error occurred while trying to access the local masterlist repository.";
BOOST_LOG_TRIVIAL(trace) << "Attempting to open the Git repository at: " << repo_path;
if (!isRepository(repo_path)) {
// Clone the remote repository.
BOOST_LOG_TRIVIAL(info) << "Repository doesn't exist, cloning the remote repository.";
+5 -1
View File
@@ -976,17 +976,21 @@ void Launcher::OnSortPlugins(wxCommandEvent& event) {
//Need to determine if any new edits have been made.
bool haveNewEdits = false;
if (newUserlist.size() != ulist_plugins.size())
if (newUserlist.size() != ulist_plugins.size()) {
BOOST_LOG_TRIVIAL(info) << "Metadata edited for some plugin, new and old userlists differ in size.";
haveNewEdits = true;
}
else {
for (const auto& newEdit : newUserlist) {
const auto it = std::find(ulist_plugins.begin(), ulist_plugins.end(), newEdit);
if (it == ulist_plugins.end()) {
BOOST_LOG_TRIVIAL(info) << "Metadata added for plugin: " << it->Name();
haveNewEdits = true;
break;
}
if (!it->DiffMetadata(newEdit).HasNameOnly()) {
BOOST_LOG_TRIVIAL(info) << "Metadata edited for plugin: " << it->Name();
haveNewEdits = true;
break;
}