database: silence some println!'s for now

This commit is contained in:
hinto.janai 2024-04-16 17:07:20 -04:00
parent 65d3a5b0c6
commit 0bc3fb9e18
No known key found for this signature in database
GPG key ID: D47CE05FA175A499
2 changed files with 6 additions and 4 deletions

View file

@ -85,8 +85,8 @@ impl Drop for ConcreteEnv {
// <https://github.com/LMDB/lmdb/blob/b8e54b4c31378932b69f1298972de54a565185b1/libraries/liblmdb/lmdb.h#L49-L61>
let result = self.env.read().unwrap().clear_stale_readers();
match result {
Ok(n) => println!("LMDB stale readers cleared: {n}"),
Err(e) => println!("LMDB stale reader clear error: {e:?}"),
Ok(n) => (), // println!("LMDB stale readers cleared: {n}"),
Err(e) => (), // println!("LMDB stale reader clear error: {e:?}"),
}
}
}
@ -196,7 +196,8 @@ impl Env for ConcreteEnv {
env: &heed::Env,
tx_rw: &mut heed::RwTxn<'_>,
) -> Result<(), InitError> {
println!("create_table(): {}", T::NAME); // TODO: use tracing.
// TODO: use tracing.
// println!("create_table(): {}", T::NAME);
DatabaseOpenOptions::new(env)
.name(<T as Table>::NAME)

View file

@ -95,7 +95,8 @@ impl Env for ConcreteEnv {
/// Function that creates the tables based off the passed `T: Table`.
fn create_table<T: Table>(tx_rw: &redb::WriteTransaction) -> Result<(), InitError> {
println!("create_table(): {}", T::NAME); // TODO: use tracing.
// TODO: use tracing.
// println!("create_table(): {}", T::NAME);
let table: redb::TableDefinition<
'static,