stream = Connect();
} catch (const std::exception& ex) {
Log(LogWarning, "ElasticsearchWriter")
- << "Flush failed, cannot connect to Elasticsearch.";
+ << "Flush failed, cannot connect to Elasticsearch: " << DiagnosticInformation(ex, false);
return;
}
stream = Connect();
} catch (const std::exception& ex) {
Log(LogWarning, "InfluxDbWriter")
- << "Flush failed, cannot connect to InfluxDB.";
+ << "Flush failed, cannot connect to InfluxDB: " << DiagnosticInformation(ex, false);
return;
}
try {
tlsStream->Handshake();
- } catch (const std::exception&) {
+ } catch (const std::exception& ex) {
Log(LogCritical, "ApiListener")
- << "Client TLS handshake failed (" << conninfo << ")";
+ << "Client TLS handshake failed (" << conninfo << "): " << DiagnosticInformation(ex, false);
tlsStream->Close();
return;
}
try {
stream->Handshake();
- } catch (const std::exception&) {
- Log(LogCritical, "cli", "Client TLS handshake failed.");
+ } catch (const std::exception& ex) {
+ Log(LogCritical, "cli")
+ << "Client TLS handshake failed: " << DiagnosticInformation(ex, false);
return 1;
}
#define PKIUTILITY_H
#include "remote/i2-remote.hpp"
+#include "base/exception.hpp"
#include "base/dictionary.hpp"
#include "base/string.hpp"
#include <openssl/x509v3.h>