Increase limits for slow operations logging.

This commit is contained in:
levlam 2022-09-23 22:29:18 +03:00
parent faa738d6a9
commit 8e196d2570
2 changed files with 5 additions and 5 deletions

View File

@ -1042,7 +1042,7 @@ Status SessionConnection::do_flush() {
auto start_time = Time::now();
auto result = raw_connection_->flush(auth_data_->get_auth_key(), *this);
auto elapsed_time = Time::now() - start_time;
if (elapsed_time >= 0.01) {
if (elapsed_time >= 0.1) {
LOG(ERROR) << "RawConnection::flush took " << elapsed_time << " seconds, written " << last_write_size_
<< " bytes, read " << last_read_size_ << " bytes and returned " << result;
}

View File

@ -160,7 +160,7 @@ struct SslHandleDeleter {
}
SSL_free(ssl_handle);
auto elapsed_time = Time::now() - start_time;
if (elapsed_time >= 0.001) {
if (elapsed_time >= 0.1) {
LOG(ERROR) << "SSL_free took " << elapsed_time << " seconds";
}
}
@ -297,7 +297,7 @@ Result<SslCtx> create_ssl_ctx(CSlice cert_file, SslStream::VerifyPeer verify_pee
auto start_time = Time::now();
auto result = do_create_ssl_ctx(cert_file, verify_peer);
auto elapsed_time = Time::now() - start_time;
if (elapsed_time >= 0.01) {
if (elapsed_time >= 0.1) {
LOG(ERROR) << "do_create_ssl_ctx took " << elapsed_time << " seconds";
}
return result;
@ -386,7 +386,7 @@ class SslStreamImpl {
auto start_time = Time::now();
auto size = SSL_write(ssl_handle_.get(), slice.data(), static_cast<int>(slice.size()));
auto elapsed_time = Time::now() - start_time;
if (elapsed_time >= 0.001) {
if (elapsed_time >= 0.1) {
LOG(ERROR) << "SSL_write of size " << slice.size() << " took " << elapsed_time << " seconds and returned " << size
<< ' ' << SSL_get_error(ssl_handle_.get(), size);
}
@ -401,7 +401,7 @@ class SslStreamImpl {
auto start_time = Time::now();
auto size = SSL_read(ssl_handle_.get(), slice.data(), static_cast<int>(slice.size()));
auto elapsed_time = Time::now() - start_time;
if (elapsed_time >= 0.001) {
if (elapsed_time >= 0.1) {
LOG(ERROR) << "SSL_read took " << elapsed_time << " seconds and returned " << size << ' '
<< SSL_get_error(ssl_handle_.get(), size);
}