nostrdb: print search keys to stdout

otherwise it's way too annoying to grep

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-08-31 06:48:10 -07:00
committed by Daniel D’Aquino
parent ddd30054e8
commit 0c483bb55a

View File

@@ -3,7 +3,7 @@
static void ndb_print_text_search_key(struct ndb_text_search_key *key)
{
fprintf(stderr,"K<'%.*s' %" PRIu64 " %" PRIu64 " note_id:%" PRIu64 ">", key->str_len, key->str,
printf("K<'%.*s' %" PRIu64 " %" PRIu64 " note_id:%" PRIu64 ">", (int)key->str_len, key->str,
key->word_index,
key->timestamp,
key->note_id);