[httpd] Better logging of evbuffer_read() errors

Fixes #1931
This commit is contained in:
ejurgensen 2025-09-30 20:44:01 +02:00
parent 336200727d
commit b7e385ffe0

View File

@ -920,7 +920,7 @@ stream_chunk_raw_cb(int fd, short event, void *arg)
if (ret == 0)
DPRINTF(E_INFO, L_HTTPD, "Done streaming file id %d\n", st->id);
else
DPRINTF(E_LOG, L_HTTPD, "Streaming error, file id %d\n", st->id);
DPRINTF(E_LOG, L_HTTPD, "Read error, file id %d: %s\n", st->id, strerror(errno));
stream_end(st);
return;