From: Michael Friedrich Date: Wed, 28 Feb 2018 09:18:29 +0000 (+0100) Subject: Log which ticket was invalid on the master X-Git-Tag: v2.9.0~141^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ad31e0d118f048259aed71a7dd8b8a1fd707d51b;p=icinga2 Log which ticket was invalid on the master This helps debugging a lot, especially to reproduce the issue why the ticket is invalid. --- diff --git a/lib/remote/jsonrpcconnection-pki.cpp b/lib/remote/jsonrpcconnection-pki.cpp index 80740ac31..ce9994023 100644 --- a/lib/remote/jsonrpcconnection-pki.cpp +++ b/lib/remote/jsonrpcconnection-pki.cpp @@ -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 + "'.");