logging action execution

This commit is contained in:
Radu Ioan Fericean
2012-08-10 22:31:23 +03:00
parent 29358f17f7
commit 171e67d4aa
2 changed files with 2 additions and 0 deletions

View File

@@ -219,6 +219,7 @@ func (at *ActionTiming) Execute() (err error) {
}
for _, ub := range at.getUserBalances() {
AccLock.Guard(ub.Id, func() (float64, error) {
Logger.Info(fmt.Sprintf("Executing %v: %v", ub.Id, a))
err = actionFunction(ub, a)
storageGetter.SetUserBalance(ub)
return 0, nil

View File

@@ -50,6 +50,7 @@ func (at *ActionTrigger) Execute(ub *UserBalance) (err error) {
Logger.Warning(fmt.Sprintf("Function type %v not available, aborting execution!", a.ActionType))
return
}
Logger.Info(fmt.Sprintf("Executing %v: %v", ub.Id, a))
err = actionFunction(ub, a)
}
at.Executed = true