adds logs in rollup and tally run (#1131)

This commit is contained in:
Jennifer Li Johnson 2019-01-24 15:05:53 -05:00 committed by GitHub
parent b424345edf
commit 030d294399
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -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)

View File

@ -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)