fizzy-sdk 0.2.4

Official Fizzy API client, generated from the Smithy model in spec/
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! The crate's own log lines, on `tracing` when the feature is on and silent otherwise.

#[cfg(feature = "tracing")]
pub(crate) fn debug(operation: &str, attempt: u32, detail: &str) {
    tracing::debug!(operation, attempt, "{detail}");
}

#[cfg(not(feature = "tracing"))]
pub(crate) fn debug(_operation: &str, _attempt: u32, _detail: &str) {}

#[cfg(feature = "tracing")]
pub(crate) fn warn(detail: &str) {
    tracing::warn!("{detail}");
}

#[cfg(not(feature = "tracing"))]
pub(crate) fn warn(_detail: &str) {}