Skip to content

Commit

Permalink
fixed an issue where profiler printed its debug status after executin…
Browse files Browse the repository at this point in the history
…g the loader process. this resolves issue #23
  • Loading branch information
seantcanavan committed Dec 19, 2016
1 parent b3add93 commit 821b0df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/github.com/seantcanavan/loader/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ func (ldr *Loader) StartAsynchronous() []LoaderProcess {

defer waitGroup.Done()

cmd := exec.Command(currentProcess.Command, currentProcess.Arguments...)

logger.Lgr.LogMessage("Asynchronously executing LoaderProcess: %+v", currentProcess)

cmd := exec.Command(currentProcess.Command, currentProcess.Arguments...)

currentProcess.Start = time.Now().Unix()
output, err := cmd.CombinedOutput()
currentProcess.End = time.Now().Unix()
Expand Down Expand Up @@ -165,10 +165,10 @@ func (ldr *Loader) StartSynchronous() []LoaderProcess {

for _, currentProcess := range ldr.Processes {

cmd := exec.Command(currentProcess.Command, currentProcess.Arguments...)

logger.Lgr.LogMessage("Synchronously executing LoaderProcess: %+v", currentProcess)

cmd := exec.Command(currentProcess.Command, currentProcess.Arguments...)

currentProcess.Start = time.Now().Unix()
output, err := cmd.CombinedOutput()
currentProcess.End = time.Now().Unix()
Expand Down

0 comments on commit 821b0df

Please sign in to comment.