Skip to content

Commit

Permalink
chore(api): remove verbose logs
Browse files Browse the repository at this point in the history
  • Loading branch information
heiytor authored and gustavosbarreto committed Dec 5, 2023
1 parent 993d52f commit b2d4214
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
9 changes: 1 addition & 8 deletions api/workers/heartbeat.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (w *Workers) registerHeartbeat() {
"component": "worker",
"task": TaskHeartbeat,
}).
Info("Executing heartbeat worker.")
Trace("Executing heartbeat worker.")

scanner := bufio.NewScanner(bytes.NewReader(task.Payload()))
scanner.Split(bufio.ScanLines)
Expand Down Expand Up @@ -52,13 +52,6 @@ func (w *Workers) registerHeartbeat() {
w.store.DeviceSetOnline(ctx, models.UID(uid), timestamp, true) //nolint:errcheck
}

log.WithFields(
log.Fields{
"component": "worker",
"task": TaskHeartbeat,
}).
Info("Finishing heartbeat worker.")

return nil
})
}
4 changes: 2 additions & 2 deletions api/workers/session_cleanup.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (w *Workers) registerSessionCleanup() {
"cron_expression": w.env.SessionRecordCleanupSchedule,
"task": TaskSessionCleanup,
}).
Info("Executing cleanup worker.")
Trace("Executing cleanup worker.")

lte := time.Now().UTC().AddDate(0, 0, w.env.SessionRecordCleanupRetention*(-1))
deletedCount, updatedCount, err := w.store.SessionDeleteRecordFrameByDate(ctx, lte)
Expand All @@ -56,7 +56,7 @@ func (w *Workers) registerSessionCleanup() {
"deleted_count": deletedCount,
"updated_count": updatedCount,
}).
Info("Finishing cleanup worker.")
Trace("Finishing cleanup worker.")

return nil
})
Expand Down

0 comments on commit b2d4214

Please sign in to comment.