chore: lower log level
This commit is contained in:
parent
27972cbad1
commit
cf53fc7947
|
@ -1,4 +1,4 @@
|
||||||
logLevel = 8
|
logLevel = 0
|
||||||
[[stages]]
|
[[stages]]
|
||||||
name = "compile"
|
name = "compile"
|
||||||
[stages.executor]
|
[stages.executor]
|
||||||
|
|
|
@ -67,7 +67,7 @@ func generateStages(conf Conf) []stage.Stage {
|
||||||
if len(s.Executor.With.Cases) == 0 {
|
if len(s.Executor.With.Cases) == 0 {
|
||||||
cmds = []stage.Cmd{defaultCmd}
|
cmds = []stage.Cmd{defaultCmd}
|
||||||
}
|
}
|
||||||
slog.Info("parse stages config", "cmds", cmds)
|
slog.Debug("parse stages config", "cmds", cmds)
|
||||||
stages = append(stages, stage.Stage{
|
stages = append(stages, stage.Stage{
|
||||||
Name: s.Name,
|
Name: s.Name,
|
||||||
ExecutorName: s.Executor.Name,
|
ExecutorName: s.Executor.Name,
|
||||||
|
|
|
@ -7,23 +7,23 @@ import (
|
||||||
func Run(stages []Stage) []StageResult {
|
func Run(stages []Stage) []StageResult {
|
||||||
var stageResults []StageResult
|
var stageResults []StageResult
|
||||||
for _, stage := range stages {
|
for _, stage := range stages {
|
||||||
slog.Info("stage start", "name", stage.Name)
|
slog.Debug("stage start", "name", stage.Name)
|
||||||
slog.Info("executor run start", "cmds", stage.ExecutorCmds)
|
slog.Debug("executor run start", "cmds", stage.ExecutorCmds)
|
||||||
executor := executorMap[stage.ExecutorName]
|
executor := executorMap[stage.ExecutorName]
|
||||||
executorResults, err := executor.Run(stage.ExecutorCmds)
|
executorResults, err := executor.Run(stage.ExecutorCmds)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
slog.Error("executor run error", "name", stage.ExecutorName, "error", err)
|
slog.Error("executor run error", "name", stage.ExecutorName, "error", err)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
slog.Info("executor run done", "results", executorResults)
|
slog.Debug("executor run done", "results", executorResults)
|
||||||
slog.Info("parser run start", "config", stage.ParserConfig)
|
slog.Debug("parser run start", "config", stage.ParserConfig)
|
||||||
parser := parserMap[stage.ParserName]
|
parser := parserMap[stage.ParserName]
|
||||||
parserResults, end, err := parser.Run(executorResults, stage.ParserConfig)
|
parserResults, end, err := parser.Run(executorResults, stage.ParserConfig)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
slog.Error("parser run error", "name", stage.ExecutorName, "error", err)
|
slog.Error("parser run error", "name", stage.ExecutorName, "error", err)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
slog.Info("parser run done", "results", parserResults)
|
slog.Debug("parser run done", "results", parserResults)
|
||||||
stageResults = append(stageResults, StageResult{
|
stageResults = append(stageResults, StageResult{
|
||||||
Name: stage.Name,
|
Name: stage.Name,
|
||||||
ParserResults: parserResults,
|
ParserResults: parserResults,
|
||||||
|
@ -37,11 +37,11 @@ func Run(stages []Stage) []StageResult {
|
||||||
|
|
||||||
func Cleanup() {
|
func Cleanup() {
|
||||||
for name, executor := range executorMap {
|
for name, executor := range executorMap {
|
||||||
slog.Info("executor cleanup start", "name", name)
|
slog.Debug("executor cleanup start", "name", name)
|
||||||
err := executor.Cleanup()
|
err := executor.Cleanup()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
slog.Error("executor cleanup error", "name", name, "error", err)
|
slog.Error("executor cleanup error", "name", name, "error", err)
|
||||||
}
|
}
|
||||||
slog.Info("executor cleanup done", "name", name)
|
slog.Debug("executor cleanup done", "name", name)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user