mirror of
https://github.com/kairos-io/immucore.git
synced 2025-09-04 16:20:05 +00:00
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:
committed by
GitHub
parent
62831b8ecf
commit
13b06d9e35
@@ -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{}
|
||||
|
||||
|
Reference in New Issue
Block a user