diff --git a/configure.ac b/configure.ac index 90f4ab6..6b81ded 100644 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,5 @@ dnl -AC_INIT(mod_gnutls, 0.5.8) +AC_INIT(mod_gnutls, 0.5.9) OOO_CONFIG_NICE(config.nice) MOD_GNUTLS_VERSION=AC_PACKAGE_VERSION AC_PREREQ(2.53) diff --git a/src/gnutls_cache.c b/src/gnutls_cache.c index 3ca8cb5..2653b4e 100644 --- a/src/gnutls_cache.c +++ b/src/gnutls_cache.c @@ -456,12 +456,15 @@ static int dbm_cache_store(void* baton, gnutls_datum_t key, } rv = apr_dbm_store(dbm, dbmkey, dbmval); - if (rv != APR_SUCCESS) { + char err[128], *p; + + p = apr_dbm_geterror(dbm, NULL, err, sizeof(err)); + ap_log_error(APLOG_MARK, APLOG_DEBUG, rv, ctxt->c->base_server, - "[gnutls_cache] error storing in cache '%s'", - ctxt->sc->cache_config); + "[gnutls_cache] error storing in cache '%s': %s", + ctxt->sc->cache_config, p!=NULL?p:"unknown error"); apr_dbm_close(dbm); apr_pool_destroy(spool); return -1;