Add logdomain for common DMAP code

This commit is contained in:
Julien BLACHE 2011-03-08 19:25:47 +01:00
parent 52691d6c4d
commit c792b942a0
3 changed files with 5 additions and 4 deletions

View File

@ -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");

View File

@ -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

View File

@ -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