Added print for systems before unmarshaling

This commit is contained in:
David Allen 2024-06-05 08:35:13 -06:00
parent 00ead8954a
commit 68069558ee
No known key found for this signature in database
GPG key ID: 717C593FF60A2ACC

View file

@ -144,7 +144,8 @@ func CollectAll(probeStates *[]ScannedResult, l *log.Logger, q *QueryParams) err
// add other fields from systems
if len(rm["Systems"]) > 0 {
var s map[string][]interface{}
var s map[string][]any
fmt.Printf("Systems before unmarshaling: %v\n", string(rm["Systems"]))
err = json.Unmarshal(rm["Systems"], &s)
if err != nil {
l.Log.Errorf("failed to unmarshal systems JSON: %v", err)