diff --git a/src/query.c b/src/query.c index 5b1abf12..7a47bdf4 100644 --- a/src/query.c +++ b/src/query.c @@ -115,13 +115,18 @@ char *query_build_sql(char *query) { char *sqlptr=sql; int size=sizeof(sql); + DPRINTF(E_DBG,L_QRY,"Building query for %s\n",query); pquery=query_build(query); if(pquery) { if(!query_build_clause(pquery,&sqlptr,&size)) { query_free(pquery); + DPRINTF(E_DBG,L_QRY,"Built query: %s\n",sql); return strdup(sql); } + DPRINTF(E_DBG,L_QRY,"Error converting query to SQL\n"); query_free(pquery); + } else { + DPRINTF(E_DBG,L_QRY,"Error building query\n"); } return NULL; } diff --git a/src/ssc.c b/src/ssc.c index be6f341a..b735d3ce 100644 --- a/src/ssc.c +++ b/src/ssc.c @@ -81,7 +81,7 @@ char *server_side_convert_path(char *path) int server_side_convert(char *fname) { char *ext; - DPRINTF(E_DBG,L_SCAN,"Checking for ssc: %s\n",fname); + DPRINTF(E_SPAM,L_SCAN,"Checking for ssc: %s\n",fname); if ((!config.ssc_extensions) || (!config.ssc_extensions[0]) ||