1448 use yip (#135)

Co-authored-by: Mauro Morales <mauro.morales@spectrocloud.com>
Co-authored-by: Itxaka <itxaka.garcia@spectrocloud.com>
This commit is contained in:
Dimitris Karakasilis
2023-07-04 15:52:26 +03:00
committed by GitHub
parent 62831b8ecf
commit 13b06d9e35
6 changed files with 38 additions and 1552 deletions

View File

@@ -44,7 +44,7 @@ func NewYipExecutor(l logger.Interface) executor.Executor {
plugins.Environment,
plugins.SystemdFirstboot,
plugins.DataSources,
YipLayoutPlugin,
plugins.Layout,
),
)
return exec
@@ -56,7 +56,12 @@ func RunStage(stage string) (bytes.Buffer, error) {
var buffer bytes.Buffer
log := logrus.New()
log.SetOutput(&buffer)
log.SetLevel(logrus.InfoLevel)
// Set debug logger
debug := len(ReadCMDLineArg("rd.immucore.debug")) > 0
debugFromEnv := os.Getenv("IMMUCORE_DEBUG") != ""
if debug || debugFromEnv {
log.SetLevel(logrus.DebugLevel)
}
yip := NewYipExecutor(log)
c := ImmucoreConsole{}