summaryrefslogtreecommitdiffstats
path: root/base/openssl_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/openssl_util.cc')
-rw-r--r--base/openssl_util.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/base/openssl_util.cc b/base/openssl_util.cc
index 894c710..1cbc304 100644
--- a/base/openssl_util.cc
+++ b/base/openssl_util.cc
@@ -67,13 +67,15 @@ void EnsureOpenSSLInit() {
(void)Singleton<OpenSSLInitSingleton>::get();
}
-void ClearOpenSSLERRStack() {
+void ClearOpenSSLERRStack(const tracked_objects::Location& location) {
if (logging::DEBUG_MODE && VLOG_IS_ON(1)) {
int error_num = ERR_get_error();
if (error_num == 0)
return;
- DVLOG(1) << "OpenSSL ERR_get_error stack:";
+ std::string message;
+ location.Write(true, true, &message);
+ DVLOG(1) << "OpenSSL ERR_get_error stack from " << message;
char buf[140];
do {
ERR_error_string_n(error_num, buf, arraysize(buf));