From c733f28494d9599892a5df54ddd7274775ff137b Mon Sep 17 00:00:00 2001
From: joanvallve <jvallve@iri.upc.edu>
Date: Mon, 17 Jun 2024 12:52:01 +0200
Subject: [PATCH] same as prev commit

---
 include/core/utils/logging.h | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/include/core/utils/logging.h b/include/core/utils/logging.h
index 669f93552..9c94909e2 100644
--- a/include/core/utils/logging.h
+++ b/include/core/utils/logging.h
@@ -127,11 +127,7 @@ inline Logger::Logger(const std::string& name) :
 
   // Enable asynchronous logging
   // Queue size must be a power of 2
-#if SPDLOG_VER_MAJOR >= 1
   spdlog::init_thread_pool(4096, 1);
-#else
-  spdlog::set_async_mode(4096);
-#endif
 
   if (log_name_ == __INTERNAL_WOLF_MAIN_LOGGER_NAME_)
     // Logging pattern is :
@@ -160,11 +156,7 @@ inline Logger::Logger(std::string&& name) :
 
   // Enable asynchronous logging
   // Queue size must be a power of 2
-#if SPDLOG_VER_MAJOR >= 1
   spdlog::init_thread_pool(4096, 1);
-#else
-  spdlog::set_async_mode(4096);
-#endif
 
   if (log_name_ == __INTERNAL_WOLF_MAIN_LOGGER_NAME_)
     // Logging pattern is :
@@ -219,11 +211,7 @@ void Logger::trace(Args&&... args) const
 inline bool Logger::set_async_queue(const std::size_t q_size)
 {
   bool p2 = q_size%2 == 0;
-#if SPDLOG_VER_MAJOR >= 1
   if (p2) spdlog::init_thread_pool(q_size, 1);
-#else
-  if (p2) spdlog::set_async_mode(q_size);
-#endif
 
   return q_size;
 }
-- 
GitLab