From 37d21d26036855569cc49e37181ad986012092e7 Mon Sep 17 00:00:00 2001 From: Mikita Iwanowski Date: Fri, 13 Dec 2024 22:21:52 +0100 Subject: [PATCH] debug log --- providers/os/connection/device/device_connection.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/providers/os/connection/device/device_connection.go b/providers/os/connection/device/device_connection.go index 4578c9e56..6e602e2e6 100644 --- a/providers/os/connection/device/device_connection.go +++ b/providers/os/connection/device/device_connection.go @@ -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).