mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-26 13:31:00 +00:00
19 lines
567 B
Rust
19 lines
567 B
Rust
macro_rules! debug_or_trace {
|
|
($cat:expr, $raise_log_level:expr, $qual:ident = $obj:expr, $rest:tt $(,)?) => {
|
|
if $raise_log_level {
|
|
gst::debug!($cat, $qual = $obj, $rest);
|
|
} else {
|
|
gst::trace!($cat, $qual = $obj, $rest);
|
|
}
|
|
};
|
|
}
|
|
|
|
macro_rules! log_or_trace {
|
|
($cat:expr, $raise_log_level:expr, $qual:ident = $obj:expr, $rest:tt $(,)?) => {
|
|
if $raise_log_level {
|
|
gst::log!($cat, $qual = $obj, $rest);
|
|
} else {
|
|
gst::trace!($cat, $qual = $obj, $rest);
|
|
}
|
|
};
|
|
}
|