aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2023-05-07 17:01:11 +0200
committerJakub Jirutka <jakub@jirutka.cz>2023-05-07 17:01:44 +0200
commit6d3ace1ea9561386bb89b0a3e66b881e8e7be5e4 (patch)
tree43516ae19dd1fc37ba0f745c91992c56e1dc390d
parent1ecd88c01f0857139921214a264128e5639e31db (diff)
downloadgarage-6d3ace1ea9561386bb89b0a3e66b881e8e7be5e4.tar.gz
garage-6d3ace1ea9561386bb89b0a3e66b881e8e7be5e4.zip
Fix undefined macro warn! on 32-bit
Compiling garage_db v0.8.2 (garage-0.8.2/src/db) error: cannot find macro `warn` in this scope --> src/db/lmdb_adapter.rs:352:2 | 352 | warn!("LMDB is not recommended on 32-bit systems, database size will be limited"); | ^^^^ | = help: consider importing this macro: tracing::warn = note: `warn` is in scope, but it is an attribute: `#[warn]` error: could not compile `garage_db` due to previous error
-rw-r--r--src/db/lmdb_adapter.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db/lmdb_adapter.rs b/src/db/lmdb_adapter.rs
index 31956612..ecbc3b81 100644
--- a/src/db/lmdb_adapter.rs
+++ b/src/db/lmdb_adapter.rs
@@ -349,6 +349,6 @@ pub fn recommended_map_size() -> usize {
#[cfg(target_pointer_width = "32")]
pub fn recommended_map_size() -> usize {
- warn!("LMDB is not recommended on 32-bit systems, database size will be limited");
+ tracing::warn!("LMDB is not recommended on 32-bit systems, database size will be limited");
1usize << 30
}