Tune logging
This commit is contained in:
parent
a2fdb8b107
commit
a0d776a6d7
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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]) ||
|
||||||
|
|
Loading…
Reference in New Issue