From de80ed87b8339f23624642786698057a62bdf779 Mon Sep 17 00:00:00 2001
From: fujuntang <fujuntang@smartai.com>
Date: 星期二, 23 十一月 2021 11:25:48 +0800
Subject: [PATCH] Fix the communication failure issue when the registered applications exceeds the fixed amount.
---
src/logger_factory.h | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/logger_factory.h b/src/logger_factory.h
index e738ad9..e736e64 100644
--- a/src/logger_factory.h
+++ b/src/logger_factory.h
@@ -1,15 +1,15 @@
#ifndef __LOGGER_FACTORY_H__
#define __LOGGER_FACTORY_H__
#include "logger.h"
+#include "bus_config.h"
class LoggerFactory {
+private:
+ static Logger *logger;
+
public:
- static Logger getLogger() {
-//ERROR ALL
- static Logger logger(Logger::ERROR);
- return logger;
- }
+ static Logger* getLogger();
};
#endif
--
Gitblit v1.8.0