Skip to content

Commit

Permalink
fix: downgrade harmless warning to trace logging (#1714)
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptonemo committed Aug 8, 2023
1 parent f294b8a commit 2ec0a0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions storage-proofs-porep/src/stacked/vanilla/memory_handling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use std::sync::atomic::{AtomicU64, AtomicUsize, Ordering};

use anyhow::Result;
use byte_slice_cast::{AsSliceOf, FromByteSlice};
use log::{info, warn};
use log::{info, trace};
use memmap2::{Mmap, MmapMut, MmapOptions};

pub struct CacheReader<T> {
Expand Down Expand Up @@ -285,7 +285,7 @@ fn allocate_layer(sector_size: usize) -> Result<MmapMut> {
Ok(layer) => Ok(layer),
Err(err) => {
// fallback to not locked if permissions are not available
warn!("failed to lock map {:?}, falling back", err);
trace!("failed to lock map {:?}, falling back", err);
let layer = MmapOptions::new().len(sector_size).map_anon()?;
Ok(layer)
}
Expand Down

0 comments on commit 2ec0a0f

Please sign in to comment.