From 6097b1012fc97b7659a44c858aca2672487944e2 Mon Sep 17 00:00:00 2001 From: Nathan Brei Date: Sat, 14 Dec 2024 01:29:01 -0500 Subject: [PATCH] Fixes for CI --- src/libraries/JANA/Compatibility/jerror.h | 3 --- src/libraries/JANA/JLogger.h | 12 ++++++++++-- src/programs/unit_tests/Utils/JLoggerTests.cc | 3 ++- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/libraries/JANA/Compatibility/jerror.h b/src/libraries/JANA/Compatibility/jerror.h index 9fdf13d62..12de67b20 100644 --- a/src/libraries/JANA/Compatibility/jerror.h +++ b/src/libraries/JANA/Compatibility/jerror.h @@ -8,9 +8,6 @@ #pragma once -#define _DBG_ std::cerr<<__FILE__<<":"<<__LINE__<<" " -#define _DBG__ std::cerr<<__FILE__<<":"<<__LINE__< + #include #include #include @@ -123,6 +125,12 @@ JLogMessage operator<<(const JLogger& logger, T&& t) { return message; } +inline JLogMessage operator<<(const JLogger& logger, std::ostream& (*manip)(std::ostream&)) { + JLogMessage message(logger, logger.level); + message << manip; + return message; +} + /// Macros @@ -147,8 +155,8 @@ JLogMessage operator<<(const JLogger& logger, T&& t) { extern JLogger jout; extern JLogger jerr; #define jendl std::endl -#define default_cout_logger jout; -#define default_cerr_logger jerr; +#define default_cout_logger jout +#define default_cerr_logger jerr #define _DBG_ jerr<<__FILE__<<":"<<__LINE__<<" " #define _DBG__ jerr<<__FILE__<<":"<<__LINE__<