From 508a1fc8f2d5cde4116371d2adec012f57aef807 Mon Sep 17 00:00:00 2001
From: haozhifeng <haozhifeng>
Date: 星期四, 12 八月 2021 10:21:34 +0800
Subject: [PATCH] ruleserver 日志

---
 logc.go |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/logc.go b/logc.go
index e5ecbdf..dea2af5 100644
--- a/logc.go
+++ b/logc.go
@@ -1,7 +1,6 @@
 package logc
 
 import (
-	"basic.com/valib/bhomebus.git"
 	"basic.com/valib/bhshmq.git/proto/source/bhome_msg"
 	"fmt"
 	"sync"
@@ -109,6 +108,10 @@
 	deliverLog(log, timeout)
 }
 
+func SaveRuleServerLog(ruleServerPushLog RuleServerPushLog, timeout time.Duration) {
+	deliverLog(&ruleServerPushLog, timeout)
+}
+
 func deliverLog(l LogPrinter, timeout time.Duration) {
 	select {
 	case logCh <- l:
@@ -163,6 +166,7 @@
 const (
 	OperationLogTopic = "operationLogSaveTopic"
 	ScheduleLogTopic = "scheduleLogSaveTopic"
+	RuleServerLogTopic = "ruleServerLogSaveTopic"
 )
 
 func saveLoop(logCallback LogReportCallback, wg *sync.WaitGroup, done  chan struct{}) {

--
Gitblit v1.8.0