Skip to content

Commit

Permalink
Comment out some redundant logging statements.
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefano Cossu committed Apr 5, 2019
1 parent ad017e8 commit 4f0ab11
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion lakesuperior/model/structures/keyset.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ cdef class Keyset:

self.seek()
while self.get_next(&stored_val):
#logger.info(f'Looking up for removal: {stored_val}')
if memcmp(val, stored_val, TRP_KLEN) == 0:
memcpy(&stored_val, NULL_TRP, TRP_KLEN)
return
Expand Down
12 changes: 6 additions & 6 deletions lakesuperior/store/ldp_rs/lmdb_triplestore.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -477,10 +477,10 @@ cdef class LmdbTriplestore(BaseLmdbStore):
dbl_key_v.mv_size = DBL_KLEN

#logger.debug('Start indexing: {}.'.format(spok[: TRP_KLEN]))
if op == IDX_OP_REMOVE:
logger.debug(f'Remove {spok[0]} from indices.')
else:
logger.debug(f'Add {spok[0]} to indices.')
#if op == IDX_OP_REMOVE:
# logger.debug(f'Remove {spok[0]} from indices.')
#else:
# logger.debug(f'Add {spok[0]} to indices.')

while i < 3:
cur1 = self._cur_open(lookup_indices[i]) # s:po, p:so, o:sp
Expand Down Expand Up @@ -906,7 +906,7 @@ cdef class LmdbTriplestore(BaseLmdbStore):
lmdb.MDB_val key_v, data_v
TripleKey spok

logger.debug(f'lookup 1bound: {idx}, {luk}')
#logger.debug(f'lookup 1bound: {idx}, {luk}')

term_order = lookup_ordering[idx]
icur = self._cur_open(lookup_indices[idx])
Expand Down Expand Up @@ -1339,7 +1339,7 @@ cdef class LmdbTriplestore(BaseLmdbStore):

key_v.mv_data = &new_idx
logger.debug(f'New index: {new_idx}')
logger.debug('Key data inserted: {}'.format((<unsigned char*>key_v.mv_data)[:KLEN]))
#logger.debug('Key data inserted: {}'.format((<unsigned char*>key_v.mv_data)[:KLEN]))
key_v.mv_size = KLEN
data_v.mv_data = value.addr
data_v.mv_size = value.sz
Expand Down

0 comments on commit 4f0ab11

Please sign in to comment.