From d31cd5dedefa7274c28768fcaf1d9df8a13b06ba Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Fri, 26 Dec 2014 14:56:15 +0000 Subject: [PATCH] More debug logging statements --- src/backend/game.cpp | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/src/backend/game.cpp b/src/backend/game.cpp index bee62a24..a7172ba5 100644 --- a/src/backend/game.cpp +++ b/src/backend/game.cpp @@ -335,23 +335,35 @@ namespace loot { const std::string& repositoryURL, const std::string& repositoryBranch, const std::string& path, const std::string& registry) { BOOST_LOG_TRIVIAL(info) << "Setting new details for game: " << _name; - if (!name.empty()) + if (!name.empty()) { + BOOST_LOG_TRIVIAL(trace) << '\t' << "Setting name to :" << name; _name = name; + } - if (!masterFile.empty()) + if (!masterFile.empty()) { + BOOST_LOG_TRIVIAL(trace) << '\t' << "Setting master file to :" << masterFile; _masterFile = masterFile; + } - if (!repositoryURL.empty()) + if (!repositoryURL.empty()) { + BOOST_LOG_TRIVIAL(trace) << '\t' << "Setting repo URL to :" << repositoryURL; _repositoryURL = repositoryURL; + } - if (!repositoryBranch.empty()) + if (!repositoryBranch.empty()) { + BOOST_LOG_TRIVIAL(trace) << '\t' << "Setting repo branch to :" << repositoryBranch; _repositoryBranch = repositoryBranch; + } - if (!path.empty()) + if (!path.empty()) { + BOOST_LOG_TRIVIAL(trace) << '\t' << "Setting game path to :" << path; gamePath = path; + } - if (!registry.empty()) + if (!registry.empty()) { + BOOST_LOG_TRIVIAL(trace) << '\t' << "Setting registry key to :" << registry; registryKey = registry; + } return *this; }