swap stages colors

This commit is contained in:
2025-07-31 21:32:35 +03:00
parent 45e541ac00
commit 7009828e79

View File

@@ -45,7 +45,7 @@ func Init1Hook(cs *corestate.CoreState, x *app.AppX) {
}
func Init2Hook(cs *corestate.CoreState, x *app.AppX) {
x.Log.SetPrefix(logs.SetBlue(fmt.Sprintf("(%s) ", cs.Stage)))
x.Log.SetPrefix(logs.SetYellow(fmt.Sprintf("(%s) ", cs.Stage)))
if err := x.Config.LoadEnv(); err != nil {
x.Log.Fatalf("env load error: %s", err)
@@ -130,7 +130,7 @@ func Init4Hook(cs *corestate.CoreState, x *app.AppX) {
// post-init stage
func Init5Hook(cs *corestate.CoreState, x *app.AppX) {
cs.Stage = corestate.StagePostInit
x.Log.SetPrefix(logs.SetYellow(fmt.Sprintf("(%s) ", cs.Stage)))
x.Log.SetPrefix(logs.SetBlue(fmt.Sprintf("(%s) ", cs.Stage)))
cs.RunDir = run_manager.Toggle()
exist, err := utils.ExistsMatchingDirs(filepath.Join(os.TempDir(), fmt.Sprintf("/*-%s-%s", cs.UUID32, "gosally-runtime")), cs.RunDir)