From 508a1fc8f2d5cde4116371d2adec012f57aef807 Mon Sep 17 00:00:00 2001
From: haozhifeng <haozhifeng>
Date: 星期四, 12 八月 2021 10:21:34 +0800
Subject: [PATCH] ruleserver 日志
---
logc.go | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/logc.go b/logc.go
index b5fd920..dea2af5 100644
--- a/logc.go
+++ b/logc.go
@@ -108,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:
@@ -162,6 +166,7 @@
const (
OperationLogTopic = "operationLogSaveTopic"
ScheduleLogTopic = "scheduleLogSaveTopic"
+ RuleServerLogTopic = "ruleServerLogSaveTopic"
)
func saveLoop(logCallback LogReportCallback, wg *sync.WaitGroup, done chan struct{}) {
--
Gitblit v1.8.0