MCPcopy Create free account
hub / github.com/Icinga/icinga2 / ExceptionHandler

Method ExceptionHandler

lib/perfdata/influxdbcommonwriter.cpp:133–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133void InfluxdbCommonWriter::ExceptionHandler(boost::exception_ptr exp)
134{
135 Log(LogCritical, GetReflectionType()->GetName(), "Exception during InfluxDB operation: Verify that your backend is operational!");
136
137 Log(LogDebug, GetReflectionType()->GetName())
138 << "Exception during InfluxDB operation: " << DiagnosticInformation(std::move(exp));
139
140 //TODO: Close the connection, if we keep it open.
141}
142
143OptionalTlsStream InfluxdbCommonWriter::Connect()
144{

Callers

nothing calls this directly

Calls 2

LogClass · 0.85
GetNameMethod · 0.45

Tested by

no test coverage detected