@@ -128,40 +128,50 @@ to interact and monitor the Scroll Application`,
128128 if err != nil {
129129 return err
130130 }
131+
132+ logger .Log ().Info ("Starting queue manager" )
133+ go queueManager .Work ()
131134 } else if initScroll || true { //TODO: remove true
132135 logger .Log ().Info ("No lock file found, but init command available. Bootstrapping..." )
136+
137+ logger .Log ().Info ("Creating lock and bootstrapping files" )
133138 //There is an error here. We need to bootstrap the files before we render out the templates in the bootstrap func above
134139 err := scrollService .CreateLockAndBootstrapFiles ()
135140 if err != nil {
136141 return err
137142 }
138143
144+ logger .Log ().Info ("Rendering cwd templates" )
139145 err = scrollService .RenderCwdTemplates ()
140146 if err != nil {
141147 return err
142148 }
143149
150+ logger .Log ().Info ("Launching plugins" )
144151 //important to launch plugins, after the templates are rendered, sothat templates can provide for plugins
145152 err = processLauncher .LaunchPlugins ()
146153
147154 if err != nil {
148155 return err
149156 }
157+
158+ logger .Log ().Info ("Starting queue manager" )
159+ go queueManager .Work ()
160+
161+ logger .Log ().Info ("Starting scroll.init process" )
150162 //start scroll.init process
151163 //initialize if nothing is there
152164 err = queueManager .AddItem (currentScroll .Init , true )
153165 if err != nil {
154166 return err
155167 }
156168
169+ logger .Log ().Info ("Writing new scroll lock" )
157170 scrollService .WriteNewScrollLock ()
158171
159172 logger .Log ().Info ("Bootstrapping done" )
160173 }
161174
162- //run if something is there
163- go queueManager .Work ()
164-
165175 err = queueManager .QueueLockFile ()
166176 if err != nil {
167177 return err
0 commit comments