Tune logging

This commit is contained in:
Ron Pedde 2005-05-23 01:12:55 +00:00
parent a2fdb8b107
commit a0d776a6d7
2 changed files with 6 additions and 1 deletions

View File

@ -115,13 +115,18 @@ char *query_build_sql(char *query) {
char *sqlptr=sql; char *sqlptr=sql;
int size=sizeof(sql); int size=sizeof(sql);
DPRINTF(E_DBG,L_QRY,"Building query for %s\n",query);
pquery=query_build(query); pquery=query_build(query);
if(pquery) { if(pquery) {
if(!query_build_clause(pquery,&sqlptr,&size)) { if(!query_build_clause(pquery,&sqlptr,&size)) {
query_free(pquery); query_free(pquery);
DPRINTF(E_DBG,L_QRY,"Built query: %s\n",sql);
return strdup(sql); return strdup(sql);
} }
DPRINTF(E_DBG,L_QRY,"Error converting query to SQL\n");
query_free(pquery); query_free(pquery);
} else {
DPRINTF(E_DBG,L_QRY,"Error building query\n");
} }
return NULL; return NULL;
} }

View File

@ -81,7 +81,7 @@ char *server_side_convert_path(char *path)
int server_side_convert(char *fname) { int server_side_convert(char *fname) {
char *ext; 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) || if ((!config.ssc_extensions) ||
(!config.ssc_extensions[0]) || (!config.ssc_extensions[0]) ||