Bug 1164620 - Part 2: Wrap expensive calls in PR_LOG_TEST. r=froydnj

This commit is contained in:
Eric Rahm 2015-05-14 10:13:24 -07:00
parent fb1cf677ff
commit 0c8682cc04

View File

@ -232,6 +232,10 @@ gssInit()
void void
LogGssError(OM_uint32 maj_stat, OM_uint32 min_stat, const char *prefix) LogGssError(OM_uint32 maj_stat, OM_uint32 min_stat, const char *prefix)
{ {
if (!PR_LOG_TEST(gNegotiateLog, PR_LOG_DEBUG)) {
return;
}
OM_uint32 new_stat; OM_uint32 new_stat;
OM_uint32 msg_ctx = 0; OM_uint32 msg_ctx = 0;
gss_buffer_desc status1_string; gss_buffer_desc status1_string;