mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-26 14:13:18 -05:00
Add logdomain for common DMAP code
This commit is contained in:
parent
52691d6c4d
commit
c792b942a0
@ -187,7 +187,7 @@ dmap_send_error(struct evhttp_request *req, char *container, char *errmsg)
|
||||
evbuf = evbuffer_new();
|
||||
if (!evbuf)
|
||||
{
|
||||
DPRINTF(E_LOG, L_DAAP, "Could not allocate evbuffer for DAAP error\n");
|
||||
DPRINTF(E_LOG, L_DMAP, "Could not allocate evbuffer for DMAP error\n");
|
||||
|
||||
evhttp_send_error(req, HTTP_SERVUNAVAIL, "Internal Server Error");
|
||||
return;
|
||||
@ -198,7 +198,7 @@ dmap_send_error(struct evhttp_request *req, char *container, char *errmsg)
|
||||
ret = evbuffer_expand(evbuf, len);
|
||||
if (ret < 0)
|
||||
{
|
||||
DPRINTF(E_LOG, L_DAAP, "Could not expand evbuffer for DAAP error\n");
|
||||
DPRINTF(E_LOG, L_DMAP, "Could not expand evbuffer for DMAP error\n");
|
||||
|
||||
evhttp_send_error(req, HTTP_SERVUNAVAIL, "Internal Server Error");
|
||||
|
||||
|
@ -41,7 +41,7 @@ static int threshold;
|
||||
static int console;
|
||||
static char *logfilename;
|
||||
static FILE *logfile;
|
||||
static char *labels[] = { "config", "daap", "db", "httpd", "main", "mdns", "misc", "rsp", "scan", "xcode", "event", "remote", "dacp", "ffmpeg", "artwork", "player", "raop", "laudio" };
|
||||
static char *labels[] = { "config", "daap", "db", "httpd", "main", "mdns", "misc", "rsp", "scan", "xcode", "event", "remote", "dacp", "ffmpeg", "artwork", "player", "raop", "laudio", "dmap" };
|
||||
|
||||
|
||||
static int
|
||||
|
@ -24,8 +24,9 @@
|
||||
#define L_PLAYER 15
|
||||
#define L_RAOP 16
|
||||
#define L_LAUDIO 17
|
||||
#define L_DMAP 18
|
||||
|
||||
#define N_LOGDOMAINS 18
|
||||
#define N_LOGDOMAINS 19
|
||||
|
||||
/* Severities */
|
||||
#define E_FATAL 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user