Save response times in DB and show in log (for debugging)

This commit is contained in:
ejurgensen
2014-08-24 12:43:32 +02:00
parent 31ef4d4e13
commit d157aca620
3 changed files with 9 additions and 6 deletions

View File

@@ -2706,7 +2706,7 @@ daap_request(struct evhttp_request *req)
DPRINTF(E_DBG, L_DB, "DAAP request handled in %d milliseconds\n", msec);
if (msec > daapcache_threshold())
daapcache_add(full_uri, ua);
daapcache_add(full_uri, ua, msec);
evhttp_clear_headers(&query);
evbuffer_free(evbuf);