Skip to content

Commit

Permalink
Add purchase logging
Browse files Browse the repository at this point in the history
  • Loading branch information
anbsky committed May 22, 2020
1 parent b871b54 commit 6ccc78b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/query/processors.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ func preflightHookGet(caller *Caller, query *Query) (*jsonrpc.RPCResponse, error
// Assuming the stream is of a paid variety and we have just paid for the stream
metrics.LbrytvPurchases.Inc()
metrics.LbrytvPurchaseAmounts.Observe(float64(stream.Fee.Amount))
log.Infof("made a purchase for %.2f LBC", float64(stream.Fee.Amount))
// This is needed so changes can propagate for the subsequent resolve
time.Sleep(1 * time.Second)
claim, err = resolve(caller, query, url)
Expand Down

0 comments on commit 6ccc78b

Please sign in to comment.