objs[AFTCOL_PATH].data = path;
objs[AFTCOL_PATH].size = strlen(path) + 1;
- PARA_DEBUG_LOG("request to add %s with hash %s\n", path, asc);
+ PARA_INFO_LOG("request to add %s\n", path);
hs = find_hash_sister(hash);
ret = aft_get_row_of_path(path, &pb);
if (ret < 0 && ret != -E_RB_KEY_NOT_FOUND)
const void *row = pb? pb : hs;
/* update afhi and chunk_table */
if (flags & ADD_FLAG_VERBOSE)
- PARA_NOTICE_LOG("updating audio format handler info (%zd bytes)\n",
+ PARA_DEBUG_LOG("updating audio format handler info (%zd bytes)\n",
objs[AFTCOL_AFHI].size);
ret = osl_update_object(audio_file_table, row, AFTCOL_AFHI,
&objs[AFTCOL_AFHI]);
if (ret < 0)
return ret;
if (flags & ADD_FLAG_VERBOSE)
- PARA_NOTICE_LOG("updating chunk table\n");
+ PARA_DEBUG_LOG("updating chunk table\n");
ret = osl_update_object(audio_file_table, row, AFTCOL_CHUNKS,
&objs[AFTCOL_CHUNKS]);
if (ret < 0)
score += compute_num_played_score(&afsi);
score += compute_last_played_score(&afsi);
score /= 3;
- PARA_NOTICE_LOG("score: %li\n", score);
+ PARA_DEBUG_LOG("score: %li\n", score);
percent = (score + 100) / 3;
if (percent > 100)
percent = 100;
else if (percent < 0)
percent = 0;
- PARA_NOTICE_LOG("re-inserting at %lu%%\n", percent);
+ PARA_DEBUG_LOG("re-inserting at %lu%%\n", percent);
return score_update(aft_row, percent);
}
char *dirname, *filename = disk_storage_path(t, col_num, ds_name);
int ret = unlink(filename);
- PARA_INFO_LOG("deleted %s\n", filename);
+ PARA_DEBUG_LOG("deleted %s\n", filename);
free(filename);
if (ret < 0) {
if (errno == ENOENT)
return -E_BAD_TABLE;
col = &t->columns[col_num];
cd = get_column_description(t->desc, col_num);
+ PARA_DEBUG_LOG("updating column %u of %s\n", col_num, t->desc->name);
if (cd->storage_flags & OSL_RBTREE) {
if (search_rbtree(obj, t, col_num, NULL, NULL) > 0)
return -E_RB_KEY_EXISTS;
obj.size = sizeof(long);
obj.data = para_malloc(obj.size);
*(long *)obj.data = new_score;
- PARA_NOTICE_LOG("new score: %ld, position: %u/%u\n", new_score,
+ PARA_DEBUG_LOG("new score: %ld, position: %u/%u\n", new_score,
new_pos, n);
return osl_update_object(score_table, row, SCORECOL_SCORE, &obj);
}