Improve masterlist update logging

This commit is contained in:
Oliver Hamlet
2019-04-18 18:40:39 +01:00
parent 68ecc027a1
commit c96da7fef1
2 changed files with 2 additions and 6 deletions
+2 -2
View File
@@ -88,7 +88,7 @@ void GitHelper::InitialiseOptions(const std::string& branch,
const std::string& filenameToCheckout) {
if (logger_) {
logger_->debug(
"Setting up checkout options uUsing branch {} and filename {}.",
"Setting up checkout options using branch {} and filename {}.",
branch,
filenameToCheckout);
}
@@ -183,7 +183,7 @@ void GitHelper::Clone(const std::filesystem::path& path,
// Clone the remote repository.
if (logger_) {
logger_->info("Repository doesn't exist, cloning the remote repository.");
logger_->info("Repository doesn't exist, cloning the remote repository at \"{}\".", url);
}
fs::create_directories(path.parent_path());
-4
View File
@@ -107,10 +107,6 @@ bool Masterlist::Update(const std::filesystem::path& path,
if (path.empty() || repoUrl.empty() || repoBranch.empty())
throw std::invalid_argument("Repository path, URL and branch must not be empty.");
if (logger) {
logger->debug("Setting up checkout options.");
logger->debug("Using remote URL {} and branch {}", repoUrl, repoBranch);
}
git.InitialiseOptions(repoBranch, filename);
// Now try to access the repository if it exists, or clone one if it doesn't.