|
@@ -44,6 +44,7 @@ func NewDebugTaks() *DebugTaks {
|
|
func (debug *DebugTaks) Stage(id string) *DebugStage {
|
|
func (debug *DebugTaks) Stage(id string) *DebugStage {
|
|
stage := &DebugStage{}
|
|
stage := &DebugStage{}
|
|
stage.ID = id
|
|
stage.ID = id
|
|
|
|
+ stage.Events = []*DebugEvent{}
|
|
debug.Stages = append(debug.Stages, stage)
|
|
debug.Stages = append(debug.Stages, stage)
|
|
debug.CurrentStage = stage
|
|
debug.CurrentStage = stage
|
|
return stage
|
|
return stage
|
|
@@ -60,9 +61,7 @@ func (debug *DebugTaks) Event(eventType, eventId string) *DebugEvent {
|
|
Type: eventType,
|
|
Type: eventType,
|
|
Created: time.Now().Unix(),
|
|
Created: time.Now().Unix(),
|
|
}
|
|
}
|
|
-
|
|
|
|
debug.CurrentStage.PushEvent(event)
|
|
debug.CurrentStage.PushEvent(event)
|
|
-
|
|
|
|
return event
|
|
return event
|
|
}
|
|
}
|
|
|
|
|