log each error message that is on a very high debug level

This commit is contained in:
Love Hörnquist Åstrand
2012-03-10 10:23:57 -08:00
parent 7b411b3993
commit 472141be03
2 changed files with 11 additions and 0 deletions

View File

@@ -90,6 +90,15 @@ krb5_log(krb5_context context,
return 0;
}
void KRB5_LIB_FUNCTION
_krb5_debug(krb5_context context,
int level,
const char *fmt,
...)
{
}
/* This function is currently just used to get the location of the EGD
* socket. If we're not using an EGD, then we can just return NULL */

View File

@@ -115,6 +115,8 @@ krb5_vset_error_message (krb5_context context, krb5_error_code ret,
if (r < 0)
context->error_string = NULL;
HEIMDAL_MUTEX_unlock(context->mutex);
if (context->error_string)
_krb5_debug(context, 100, "error message: %s: %d", context->error_string, ret);
}
/**