mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-29 16:44:29 +02:00
HTTP Request: Log an exception message if an error occurs
This commit is contained in:
parent
04704a49a4
commit
488e6bfb67
@ -1,5 +1,6 @@
|
|||||||
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
|
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
|
||||||
|
|
||||||
|
#include "base/logger.hpp"
|
||||||
#include "remote/httphandler.hpp"
|
#include "remote/httphandler.hpp"
|
||||||
#include "remote/httputility.hpp"
|
#include "remote/httputility.hpp"
|
||||||
#include "base/singleton.hpp"
|
#include "base/singleton.hpp"
|
||||||
@ -112,7 +113,10 @@ void HttpHandler::ProcessRequest(
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (const std::exception&) {
|
} catch (const std::exception& ex) {
|
||||||
|
Log(LogWarning, "HttpServerConnection")
|
||||||
|
<< "Error while processing HTTP request: " << ex.what();
|
||||||
|
|
||||||
processed = false;
|
processed = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user