mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Added more debug logging statements.
This commit is contained in:
@@ -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
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user