Skip to content

Commit

Permalink
debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
slntopp committed Dec 13, 2024
1 parent 7072f89 commit 37d21d2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions providers/os/connection/device/device_connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,12 @@ func tryDetectAsset(connId uint32, partition *snapshot.PartitionInfo, conf *inve
return nil, errors.New("cannot detect os")
}

log.Debug().Err(err).
Str("partition", partition.Name). // debug
Str("path", fsPath). // debug
Strs("id-detectors", asset.IdDetector). // debug
Msg("device connection> detecting platform from device")

fingerprint, p, err := id.IdentifyPlatform(fsConn, &plugin.ConnectReq{}, p, asset.IdDetector)
if err != nil {
log.Debug().Err(err).
Expand Down

0 comments on commit 37d21d2

Please sign in to comment.