Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add sm.requestIdentity.DeviceID to debug log for reliable ack #363

Merged
merged 1 commit into from
Feb 18, 2025

Conversation

agbpatro
Copy link
Collaborator

@agbpatro agbpatro commented Feb 18, 2025

Description

Will be helpful to always have client id in debug logs

Fixes # (issue)

Type of change

Please select all options that apply to this change:

  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Bug fix (non-breaking change which fixes an issue)
  • Documentation update

Checklist:

Confirm you have completed the following steps:

  • My code follows the style of this project.
  • I have performed a self-review of my code.
  • I have made corresponding updates to the documentation.
  • I have added/updated unit tests to cover my changes.
  • I have added/updated integration tests to cover my changes.

@@ -293,10 +293,9 @@ func (sm *SocketManager) processRecord(record *telemetry.Record) {
func (sm *SocketManager) respondToVehicle(record *telemetry.Record, err error) {
var response []byte

logInfo := logrus.LogInfo{"txid": record.Txid, "record_type": record.TxType}
logInfo := logrus.LogInfo{"txid": record.Txid, "record_type": record.TxType, "client_id": sm.requestIdentity.DeviceID}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

client_id seems like an odd choice here. Maybe device_id?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@agbpatro agbpatro force-pushed the update_debug_log branch 2 times, most recently from 25194bb to 12e3e52 Compare February 18, 2025 19:46
@agbpatro agbpatro merged commit 933d124 into main Feb 18, 2025
5 checks passed
@agbpatro agbpatro deleted the update_debug_log branch February 18, 2025 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants