remove printing to stderr from initTLS because that could cause problems on clients

This commit is contained in:
Evan Tschannen 2020-03-04 15:06:22 -08:00
parent 35a1ac6482
commit 7cbabca124
1 changed files with 1 additions and 3 deletions

View File

@ -954,8 +954,7 @@ void Net2::initTLS() {
sslContext.add_certificate_authority(boost::asio::buffer(cert.data(), cert.size()));
}
catch (Error& e) {
fprintf(stderr, "Error reading CA file %s: %s\n", tlsParams.tlsCAPath.c_str(), e.what());
TraceEvent("Net2TLSReadCAError").error(e);
TraceEvent("Net2TLSReadCAError").error(e).detail("CAPath", tlsParams.tlsCAPath);
throw tls_error();
}
}
@ -978,7 +977,6 @@ void Net2::initTLS() {
}
}
} catch(boost::system::system_error e) {
fprintf(stderr, "Error initializing TLS: %s\n", e.what());
TraceEvent("Net2TLSInitError").detail("Message", e.what());
throw tls_error();
}