Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logging message if setoption parameter successfully set #2065

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
3 changes: 3 additions & 0 deletions src/engine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,10 @@ void EngineLoop::CmdIsReady() {

void EngineLoop::CmdSetOption(const std::string& name, const std::string& value,
const std::string& context) {
try {
options_.SetUciOption(name, value, context);
SendResponse(name + " successfully set to " + value);
} catch (const std::exception&) {}
// Set the log filename for the case it was set in UCI option.
Logging::Get().SetFilename(
options_.GetOptionsDict().Get<std::string>(kLogFileId));
Expand Down