From a570df727bf7b5ff07d36ba9cd4d5d55a115e184 Mon Sep 17 00:00:00 2001 From: AtlanCI Date: Tue, 24 May 2022 16:52:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8E=BB=E9=99=A4dump=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=90=8D=E4=B8=AD=E6=97=A0=E6=84=8F=E4=B9=89=E7=9A=84=E7=82=B9?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- util.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util.go b/util.go index 213fdcb..08f2682 100644 --- a/util.go +++ b/util.go @@ -193,6 +193,9 @@ func matchRule(history ring, curVal, ruleMin, ruleAbs, ruleDiff, ruleMax int) (b func getBinaryFileName(filePath string, dumpType configureType, eventID string) string { suffix := time.Now().Format("20060102150405.000") + ".log" + if len(eventID) == 0 { + return path.Join(filePath, check2name[dumpType]+"."+suffix) + } return path.Join(filePath, check2name[dumpType]+"."+eventID+"."+suffix) }