adds logs in rollup and tally run (#1131)
This commit is contained in:
parent
b424345edf
commit
030d294399
@ -37,6 +37,7 @@ func New(logger *zap.Logger, db accounting.DB, interval time.Duration) *Rollup {
|
||||
|
||||
// Run the Rollup loop
|
||||
func (r *Rollup) Run(ctx context.Context) (err error) {
|
||||
r.logger.Info("Rollup service starting up")
|
||||
defer mon.Task()(&ctx)(&err)
|
||||
for {
|
||||
err = r.Query(ctx)
|
||||
|
@ -49,6 +49,7 @@ func New(logger *zap.Logger, accountingDB accounting.DB, bwAgreementDB bwagreeme
|
||||
|
||||
// Run the Tally loop
|
||||
func (t *Tally) Run(ctx context.Context) (err error) {
|
||||
t.logger.Info("Tally service starting up")
|
||||
defer mon.Task()(&ctx)(&err)
|
||||
for {
|
||||
err = t.calculateAtRestData(ctx)
|
||||
|
Loading…
Reference in New Issue
Block a user