Increase slow code log thresholds (#4997)
This commit is contained in:
parent
c322533125
commit
422da6e82d
|
@ -7,10 +7,14 @@ use std::time::{Duration, Instant};
|
||||||
use crate::fmt::duration_short;
|
use crate::fmt::duration_short;
|
||||||
|
|
||||||
/// The default minimum info-level message time.
|
/// The default minimum info-level message time.
|
||||||
pub const DEFAULT_MIN_INFO_TIME: Duration = Duration::from_secs(5);
|
///
|
||||||
|
/// This is high enough to ignore most slow code.
|
||||||
|
pub const DEFAULT_MIN_INFO_TIME: Duration = Duration::from_secs(5 * 60);
|
||||||
|
|
||||||
/// The default minimum warning message time.
|
/// The default minimum warning message time.
|
||||||
pub const DEFAULT_MIN_WARN_TIME: Duration = Duration::from_secs(20);
|
///
|
||||||
|
/// This is a little lower than the block verify timeout.
|
||||||
|
pub const DEFAULT_MIN_WARN_TIME: Duration = Duration::from_secs(9 * 60);
|
||||||
|
|
||||||
/// A guard that logs code execution time when dropped.
|
/// A guard that logs code execution time when dropped.
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
|
|
Loading…
Reference in New Issue