Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: downgrade harmless warning to trace logging #1714

Merged
merged 1 commit into from
Aug 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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