mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 14:25:52 +00:00
bug 1242032 - change some pipnss logging output from Debug to Verbose r=Cykesiopka
Logging output that happens with every TLS socket poll, read, or write should really be Verbose, not Debug. --HG-- extra : amend_source : 455a72faa041e51b5356410d7c216aa1fdadc6c6
This commit is contained in:
parent
3d8b48e68a
commit
1890b549c4
@ -1303,19 +1303,19 @@ nsSSLIOLayerPoll(PRFileDesc* fd, int16_t in_flags, int16_t* out_flags)
|
||||
return in_flags;
|
||||
}
|
||||
|
||||
MOZ_LOG(gPIPNSSLog, LogLevel::Debug,
|
||||
(socketInfo->IsWaitingForCertVerification()
|
||||
? "[%p] polling SSL socket during certificate verification using lower %d\n"
|
||||
: "[%p] poll SSL socket using lower %d\n",
|
||||
fd, (int) in_flags));
|
||||
MOZ_LOG(gPIPNSSLog, LogLevel::Verbose,
|
||||
(socketInfo->IsWaitingForCertVerification()
|
||||
? "[%p] polling SSL socket during certificate verification using lower %d\n"
|
||||
: "[%p] poll SSL socket using lower %d\n",
|
||||
fd, (int) in_flags));
|
||||
|
||||
// We want the handshake to continue during certificate validation, so we
|
||||
// don't need to do anything special here. libssl automatically blocks when
|
||||
// it reaches any point that would be unsafe to send/receive something before
|
||||
// cert validation is complete.
|
||||
int16_t result = fd->lower->methods->poll(fd->lower, in_flags, out_flags);
|
||||
MOZ_LOG(gPIPNSSLog, LogLevel::Debug, ("[%p] poll SSL socket returned %d\n",
|
||||
(void*) fd, (int) result));
|
||||
MOZ_LOG(gPIPNSSLog, LogLevel::Verbose,
|
||||
("[%p] poll SSL socket returned %d\n", (void*) fd, (int) result));
|
||||
return result;
|
||||
}
|
||||
|
||||
@ -1418,8 +1418,8 @@ PSMRecv(PRFileDesc* fd, void* buf, int32_t amount, int flags,
|
||||
int32_t bytesRead = fd->lower->methods->recv(fd->lower, buf, amount, flags,
|
||||
timeout);
|
||||
|
||||
MOZ_LOG(gPIPNSSLog, LogLevel::Debug, ("[%p] read %d bytes\n", (void*) fd,
|
||||
bytesRead));
|
||||
MOZ_LOG(gPIPNSSLog, LogLevel::Verbose,
|
||||
("[%p] read %d bytes\n", (void*) fd, bytesRead));
|
||||
|
||||
#ifdef DEBUG_SSL_VERBOSE
|
||||
DEBUG_DUMP_BUFFER((unsigned char*) buf, bytesRead);
|
||||
@ -1449,8 +1449,8 @@ PSMSend(PRFileDesc* fd, const void* buf, int32_t amount, int flags,
|
||||
int32_t bytesWritten = fd->lower->methods->send(fd->lower, buf, amount,
|
||||
flags, timeout);
|
||||
|
||||
MOZ_LOG(gPIPNSSLog, LogLevel::Debug, ("[%p] wrote %d bytes\n",
|
||||
fd, bytesWritten));
|
||||
MOZ_LOG(gPIPNSSLog, LogLevel::Verbose,
|
||||
("[%p] wrote %d bytes\n", fd, bytesWritten));
|
||||
|
||||
return checkHandshake(bytesWritten, false, fd, socketInfo);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user