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;
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;
}

View File

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