From 330f78f3334bcdcdb4cc2ab2dbf66604e0224d71 Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期五, 21 五月 2021 16:21:45 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/valib/bhshmq

---
 box/center_main.cc |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/box/center_main.cc b/box/center_main.cc
index f70962f..58287e6 100644
--- a/box/center_main.cc
+++ b/box/center_main.cc
@@ -103,14 +103,18 @@
 
 	auto &shm = BHomeShm();
 	if (!CenterInit(shm)) {
-		LOG_FATAL() << "init memory error.";
+		auto msg = "init memory error.";
+		LOG_FATAL() << msg;
+		printf("%s\n", msg);
 		exit(0);
 	}
 	GlobalInit(shm);
 
 	InstanceFlag inst(shm, kCenterRunningFlag);
 	if (!inst.TryStartAsFirstInstance()) {
-		LOG_INFO() << "another instance is running, exit.";
+		auto msg = "another instance is running, exit.";
+		LOG_INFO() << msg;
+		printf("%s\n", msg);
 		return 0;
 	}
 
@@ -121,7 +125,9 @@
 	BHCenter center(shm);
 	center.Start();
 
-	LOG_INFO() << "center started ...";
+	auto msg = "center started ...";
+	LOG_INFO() << msg;
+	printf("%s\n", msg);
 	WaitForSignals({SIGINT, SIGTERM});
 	center.Stop();
 	LOG_INFO() << "center stopped.";

--
Gitblit v1.8.0