Skip to content

Commit

Permalink
[#69486] linux-client: getDeviceToken: Remove redundant log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Kacper Zienkiewicz committed Nov 29, 2024
1 parent 99a23e5 commit b0e32c5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions devices/linux-client/daemon/device.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,13 +280,10 @@ func (d *Device) getDeviceToken() (string, error) {
if err == nil {
// check if reauth needed in the next TOKEN_EXPIRY_MIN_ALLOWED or less seconds
if d.deviceTokenAcquired+payload.Expires-TOKEN_EXPIRY_MIN_ALLOWED <= time.Now().Unix() {
log.Println("Device token expired, reauthenticating...")
err = d.authenticateDeviceWithServer()
if err != nil {
return "", err
}
} else {
log.Println("Device token up to date")
}
} else {
// extraction failed
Expand Down

0 comments on commit b0e32c5

Please sign in to comment.