]> granicus.if.org Git - icinga2/commitdiff
Log which ticket was invalid on the master 6131/head
authorMichael Friedrich <michael.friedrich@icinga.com>
Wed, 28 Feb 2018 09:18:29 +0000 (10:18 +0100)
committerMichael Friedrich <michael.friedrich@icinga.com>
Wed, 28 Feb 2018 09:18:29 +0000 (10:18 +0100)
This helps debugging a lot, especially to reproduce the issue
why the ticket is invalid.

lib/remote/jsonrpcconnection-pki.cpp

index 80740ac3132fdd08d35f19700e5a9f7bf20cb097..ce999402358c35859eb8ef213c8d541c9d998610 100644 (file)
@@ -162,7 +162,7 @@ Value RequestCertificateHandler(const MessageOrigin::Ptr& origin, const Dictiona
 
                if (ticket != realTicket) {
                        Log(LogWarning, "JsonRpcConnection")
-                               << "Ticket for CN '" << cn << "' is invalid.";
+                               << "Ticket '" << ticket << "' for CN '" << cn << "' is invalid.";
 
                        result->Set("status_code", 1);
                        result->Set("error", "Invalid ticket for CN '" + cn + "'.");