From: Andre Noll Date: Sat, 15 Sep 2007 13:27:48 +0000 (+0200) Subject: loglevel adjustments. X-Git-Tag: v0.3.0~404 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=7fc9a44cb0205121b7ece3a3cecd66e712a31981;p=paraslash.git loglevel adjustments. --- diff --git a/aft.c b/aft.c index 4845a544..40dc1d92 100644 --- a/aft.c +++ b/aft.c @@ -1269,7 +1269,7 @@ static int com_add_callback(const struct osl_object *query, 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) @@ -1329,14 +1329,14 @@ static int com_add_callback(const struct osl_object *query, 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) diff --git a/mood.c b/mood.c index d29b930a..0d11ea13 100644 --- a/mood.c +++ b/mood.c @@ -840,13 +840,13 @@ int mood_update_audio_file(const struct osl_row *aft_row, struct afs_info *old_a 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); } diff --git a/osl.c b/osl.c index 8b89b3cb..b75b3bc3 100644 --- a/osl.c +++ b/osl.c @@ -1433,7 +1433,7 @@ static int delete_disk_storage_file(const struct osl_table *t, unsigned col_num, 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) @@ -1925,6 +1925,7 @@ int osl_update_object(struct osl_table *t, const struct osl_row *r, 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; diff --git a/score.c b/score.c index 86c6c4bb..b53d60b3 100644 --- a/score.c +++ b/score.c @@ -198,7 +198,7 @@ int score_update(const struct osl_row *aft_row, long percent) 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); }