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