Diagnostics

- Added new server configuration settings to diagnostics output.
This commit is contained in:
Paul Beckingham 2013-11-03 13:21:46 -05:00
parent 7fa3f71575
commit b42ca26631

View file

@ -222,10 +222,22 @@ int CmdDiagnostics::execute (std::string& output)
<< context.config.get ("taskd.server")
<< "\n";
if (context.config.get ("taskd.ca") != "")
out << " CA: "
<< context.config.get ("taskd.ca")
<< "\n";
if (context.config.get ("taskd.trust") != "")
out << " Trust: override\n";
out << " Cert: "
<< context.config.get ("taskd.certificate")
<< "\n";
out << " Key: "
<< context.config.get ("taskd.key")
<< "\n";
// Get credentials, but mask out the key.
std::string credentials = context.config.get ("taskd.credentials");
std::string::size_type last_slash = credentials.rfind ('/');
@ -239,6 +251,7 @@ int CmdDiagnostics::execute (std::string& output)
<< "\n\n";
// External commands.
// Deprecated in 2.3.0 with push, pull, merge.
out << bold.colorize (STRING_CMD_DIAG_EXTERNAL)
<< "\n";
{