Skip to content

Commit

Permalink
Adds logging
Browse files Browse the repository at this point in the history
  • Loading branch information
brotherlogic committed May 11, 2020
1 parent c1dae51 commit 6a7a469
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: go

go:
- 1.11
- 1.10

branches:
only:
Expand Down
1 change: 1 addition & 0 deletions recordadderutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ func (s *Server) processQueue(ctx context.Context) error {
if len(queue.Requests) > 0 && time.Now().Sub(time.Unix(queue.LastAdditionDate, 0)) > time.Hour*24 {
for i, req := range queue.GetRequests() {
if req.GetCost() < available {
s.Log(fmt.Sprintf("Adding %v", queue.Requests[i]))
err = s.rc.addRecord(ctx, queue.Requests[i])
if err != nil {
return fmt.Errorf("Error adding record: %v", err)
Expand Down

0 comments on commit 6a7a469

Please sign in to comment.