mirror of https://github.com/Icinga/icinga2.git
Merge pull request #8087 from Icinga/bugfix/log-cout-permission-error-8086
Display Logmessage if an permission error occurs
This commit is contained in:
commit
939f4591a4
|
@ -1,5 +1,6 @@
|
|||
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
|
||||
|
||||
#include "base/logger.hpp"
|
||||
#include "remote/httphandler.hpp"
|
||||
#include "remote/httputility.hpp"
|
||||
#include "base/singleton.hpp"
|
||||
|
@ -112,7 +113,10 @@ void HttpHandler::ProcessRequest(
|
|||
break;
|
||||
}
|
||||
}
|
||||
} catch (const std::exception&) {
|
||||
} catch (const std::exception& ex) {
|
||||
Log(LogWarning, "HttpServerConnection")
|
||||
<< "Error while processing HTTP request: " << ex.what();
|
||||
|
||||
processed = false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue