mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 05:34:48 +02:00
Log which ticket was invalid on the master
This helps debugging a lot, especially to reproduce the issue why the ticket is invalid.
This commit is contained in:
parent
6d45efab66
commit
ad31e0d118
@ -162,7 +162,7 @@ Value RequestCertificateHandler(const MessageOrigin::Ptr& origin, const Dictiona
|
|||||||
|
|
||||||
if (ticket != realTicket) {
|
if (ticket != realTicket) {
|
||||||
Log(LogWarning, "JsonRpcConnection")
|
Log(LogWarning, "JsonRpcConnection")
|
||||||
<< "Ticket for CN '" << cn << "' is invalid.";
|
<< "Ticket '" << ticket << "' for CN '" << cn << "' is invalid.";
|
||||||
|
|
||||||
result->Set("status_code", 1);
|
result->Set("status_code", 1);
|
||||||
result->Set("error", "Invalid ticket for CN '" + cn + "'.");
|
result->Set("error", "Invalid ticket for CN '" + cn + "'.");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user