mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 11:37:01 -07:00
Added print for systems before unmarshaling
This commit is contained in:
parent
00ead8954a
commit
68069558ee
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue