nostrdb

an unfairly fast embedded nostr database backed by lmdb
git clone git://jb55.com/nostrdb
Log | Files | Refs | Submodules | README | LICENSE

commit 834869a6d98e7d4c412dd84cc0eacf23f3abb164
parent a33063f28d7ec6323d9f885aa89dde6f635bbfbc
Author: William Casarin <jb55@jb55.com>
Date:   Fri, 22 Sep 2023 14:43:42 -0400

log: move some printfs to ndb_debug

Diffstat:
Mnostrdb.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/nostrdb.c b/nostrdb.c @@ -1431,7 +1431,7 @@ static int ndb_run_migrations(struct ndb *ndb) latest_version = sizeof(MIGRATIONS) / sizeof(MIGRATIONS[0]); if ((version = ndb_db_version(ndb)) == -1) { - fprintf(stderr, "run_migrations: no version found, assuming new db\n"); + ndb_debug("run_migrations: no version found, assuming new db\n"); version = latest_version; // no version found. fresh db? @@ -1442,11 +1442,11 @@ static int ndb_run_migrations(struct ndb *ndb) return 1; } else { - fprintf(stderr, "ndb: version %" PRIu64 " found\n", version); + ndb_debug("ndb: version %" PRIu64 " found\n", version); } if (version < latest_version) - fprintf(stderr, "nostrdb: migrating v%d -> v%d\n", + ndb_debug("nostrdb: migrating v%d -> v%d\n", (int)version, (int)latest_version); for (i = version; i < latest_version; i++) {