Skip to content

Commit

Permalink
[config] Also log the --force parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
kostorr committed Jul 27, 2022
1 parent 1069e68 commit 8a76610
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/CommandLineUtilities/ProgramConfig.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,10 @@ class ProgramConfig : public Program
}

Logger::get() << "Configuring card " << cardId << " with command line arguments" << LogDebugOps_(4600) << endm;
if (mOptions.forceConfig) {
Logger::get() << "`--force` enabled" << LogDebugOps_(4600) << endm;
}

try {
CardConfigurator(params, mOptions.forceConfig);
} catch (const std::runtime_error& e) {
Expand All @@ -253,6 +257,10 @@ class ProgramConfig : public Program
}
} else {
Logger::get() << "Configuring card " << cardId << " with config uri: " << mOptions.configUri << LogDebugOps_(4600) << endm;
if (mOptions.forceConfig) {
Logger::get() << "`--force` enabled" << LogDebugOps_(4600) << endm;
}

try {
CardConfigurator(cardId, mOptions.configUri, mOptions.forceConfig);
} catch (const std::runtime_error& e) {
Expand Down

0 comments on commit 8a76610

Please sign in to comment.