Skip to content

Commit b2d4214

Browse files
heiytorgustavosbarreto
authored andcommitted
chore(api): remove verbose logs
1 parent 993d52f commit b2d4214

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

api/workers/heartbeat.go

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func (w *Workers) registerHeartbeat() {
2424
"component": "worker",
2525
"task": TaskHeartbeat,
2626
}).
27-
Info("Executing heartbeat worker.")
27+
Trace("Executing heartbeat worker.")
2828

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

55-
log.WithFields(
56-
log.Fields{
57-
"component": "worker",
58-
"task": TaskHeartbeat,
59-
}).
60-
Info("Finishing heartbeat worker.")
61-
6255
return nil
6356
})
6457
}

api/workers/session_cleanup.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func (w *Workers) registerSessionCleanup() {
3131
"cron_expression": w.env.SessionRecordCleanupSchedule,
3232
"task": TaskSessionCleanup,
3333
}).
34-
Info("Executing cleanup worker.")
34+
Trace("Executing cleanup worker.")
3535

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

6161
return nil
6262
})

0 commit comments

Comments
 (0)