Diagnostics

- Added more info to the sync configuration details.
This commit is contained in:
Paul Beckingham 2013-11-25 16:10:21 -05:00
parent 174066c1d6
commit 1bbee9cde0

View file

@ -225,6 +225,8 @@ int CmdDiagnostics::execute (std::string& output)
if (context.config.get ("taskd.ca") != "")
out << " CA: "
<< context.config.get ("taskd.ca")
<< (File (context.config.get ("taskd.ca")).readable ()
? " (readable)" : " (not readable)")
<< "\n";
if (context.config.get ("taskd.trust") != "")
@ -232,10 +234,14 @@ int CmdDiagnostics::execute (std::string& output)
out << " Cert: "
<< context.config.get ("taskd.certificate")
<< (File (context.config.get ("taskd.certificate")).readable ()
? " (readable)" : " (not readable)")
<< "\n";
out << " Key: "
<< context.config.get ("taskd.key")
<< (File (context.config.get ("taskd.key")).readable ()
? " (readable)" : " (not readable)")
<< "\n";
out << " Ciphers: "