From c8dc318fb3a350cc13d7a1f5d58103cfa8978bca Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Tue, 29 Sep 2020 02:23:03 +0300 Subject: [PATCH] Update logger-inl.h --- include/spdlog/logger-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/logger-inl.h b/include/spdlog/logger-inl.h index ccfe9622a..1da41b375 100644 --- a/include/spdlog/logger-inl.h +++ b/include/spdlog/logger-inl.h @@ -249,7 +249,7 @@ SPDLOG_INLINE void logger::err_handler_(const std::string &msg) std::strftime(date_buf, sizeof(date_buf), "%Y-%m-%d %H:%M:%S", &tm_time); #if !defined(R_R_H) || !defined(USING_R) std::fprintf(stderr, "[*** LOG ERROR #%04zu ***] [%s] [%s] {%s}\n", err_counter, date_buf, name().c_str(), msg.c_str()); -#else // compiled under R environment +#else // compiled in R environment REprintf("[*** LOG ERROR #%04zu ***] [%s] [%s] {%s}\n", err_counter, date_buf, name().c_str(), msg.c_str()); #endif }