Add the category name back to FLOG output in Rust

This went missing.
This commit is contained in:
ridiculousfish 2023-03-19 15:58:36 -07:00
parent 34a4c7de7f
commit 99c6c76c5e

View file

@ -175,7 +175,7 @@ macro_rules! FLOG {
if crate::flog::categories::$category.enabled.load(std::sync::atomic::Ordering::Relaxed) { if crate::flog::categories::$category.enabled.load(std::sync::atomic::Ordering::Relaxed) {
#[allow(unused_imports)] #[allow(unused_imports)]
use crate::flog::{FloggableDisplay, FloggableDebug}; use crate::flog::{FloggableDisplay, FloggableDebug};
let mut vs = Vec::new(); let mut vs = vec![format!("{}:", crate::flog::categories::$category.name)];
$( $(
{ {
vs.push($elem.to_flog_str()) vs.push($elem.to_flog_str())