]> git.tue.mpg.de Git - paraslash.git/commitdiff
loglevel adjustments.
authorAndre Noll <maan@systemlinux.org>
Sat, 15 Sep 2007 13:27:48 +0000 (15:27 +0200)
committerAndre Noll <maan@systemlinux.org>
Sat, 15 Sep 2007 13:27:48 +0000 (15:27 +0200)
aft.c
mood.c
osl.c
score.c

diff --git a/aft.c b/aft.c
index 4845a5441610c77897be8f500298914637d3010c..40dc1d920dcc5b9abbe59cb21277559336f0f3ab 100644 (file)
--- 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 d29b930a0be1e0e8c64024579ac3342102eaf941..0d11ea13cdd0fe5f59ff23cf5e989972f5580e28 100644 (file)
--- 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 8b89b3cbcdb993486ec468ce6df4e87b1afba5cb..b75b3bc3f9516a3645749822d4d7cd96a0c66280 100644 (file)
--- 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 86c6c4bb366af7e1e9f6d2ddec3d820b45f74a51..b53d60b38b582b6989f65fc290e894647e53f1f7 100644 (file)
--- 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);
 }