diff --git a/cve-vulner-manager/conf/product_app.conf b/cve-vulner-manager/conf/product_app.conf index 440a252676402f89c7709e344f78bb07b3147a4f..db697f7444a7290c8f02fe7bcfc362de1faa3a83 100644 --- a/cve-vulner-manager/conf/product_app.conf +++ b/cve-vulner-manager/conf/product_app.conf @@ -65,7 +65,7 @@ maxconn = 3000 [log] -log_level = 7 +log_level = 5 log_dir = ./logs log_path = logs/cve.log maxlines=20000 @@ -81,7 +81,7 @@ getcve = 0 */40 * * * * oricveflag = 1 oricvecheck = 0 0 2 * * * getissueflag = 1 -getissue = 0 20 1,12 * * * +getissue = 0 20 1 * * * issueflag = 1 createissue = 0 0 6 * * * emergissueflag = 1 diff --git a/cve-vulner-manager/task/inittask.go b/cve-vulner-manager/task/inittask.go index 42e192fba0ee722abc4e03d88069e074a3a480cb..441c445748f609c200c2c8a99a3c5dd5827bb88d 100644 --- a/cve-vulner-manager/task/inittask.go +++ b/cve-vulner-manager/task/inittask.go @@ -30,14 +30,6 @@ func InitEulerYamlTask(eulergetymal string) { logs.Info("End of the task of obtaining euleryaml data source...") } -//InitCveTask Generate cve original data into cve library -func InitCveTask(getCve string) { - logs.Info("The task of generating cve vulnerability library from cve raw data begins...") - CveTask := toolbox.NewTask("ParamsCveOriginData", getCve, ParamsCveOriginData) - toolbox.AddTask("ParamsCveOriginData", CveTask) - logs.Info("The task of generating cve vulnerability library from cve raw data ends...") -} - // InitIssueTask Get the created issue data source func InitIssueTask(getIssue string) { logs.Info("Get the created issue data source task starts...") @@ -62,14 +54,6 @@ func CreatTask(createIssue string) { logs.Info("End of execution of the task of creating an issue...") } -// Handle the current emergency cve and create an issue -func EmgCreatTask(emergCreateIssue string) { - logs.Info("Handle the current emergency cve and create an issue task to start...") - cIssueTask := toolbox.NewTask("EmgCreateIssue", emergCreateIssue, EmgCreateIssue) - toolbox.AddTask("EmgCreateIssue", cIssueTask) - logs.Info("Handle the current emergency cve and create an issue to end...") -} - // unlock table func UnlockTask(unLockTable string) { logs.Info("Execute unlock table task start...") @@ -238,12 +222,7 @@ func InitTask() bool { getissue := BConfig.String("crontab::getissue") InitIssueTask(getissue) } - // Generate cve vulnerability library - cveflag, errxs := BConfig.Int("crontab::cveflag") - if cveflag == 1 && errxs == nil { - getcve := BConfig.String("crontab::getcve") - InitCveTask(getcve) - } + // Regularly output logs to the console printLogFlag, errxs := BConfig.Int("crontab::printlogflag") if printLogFlag == 1 && errxs == nil { @@ -256,12 +235,7 @@ func InitTask() bool { createIssue := BConfig.String("crontab::createissue") CreatTask(createIssue) } - // Handle the current emergency cve and create an issue - emergissueflag, errx := BConfig.Int("crontab::emergissueflag") - if emergissueflag == 1 && errx == nil { - emergCreateIssue := BConfig.String("crontab::emergcreateissue") - EmgCreatTask(emergCreateIssue) - } + // Generate excel data from issue genexcelflag, errx := BConfig.Int("crontab::genexcelflag") if genexcelflag == 1 && errx == nil {