Debug Compute and Disk resource logic

This commit is contained in:
Sergey Shubin svs1370
2021-03-18 20:08:04 +03:00
parent 7d589e3276
commit 9814df8700
12 changed files with 54 additions and 42 deletions

View File

@@ -143,7 +143,7 @@ func flattenNetworks(nets []NicRecord) []interface{} {
length += 1
}
}
log.Printf("flattenNetworks: found %d NICs with PUBLIC type", length)
log.Debugf("flattenNetworks: found %d NICs with PUBLIC type", length)
result := make([]interface{}, length)
if length == 0 {
@@ -163,7 +163,7 @@ func flattenNetworks(nets []NicRecord) []interface{} {
elem["network_id"], _ = strconv.Atoi(substr[1])
elem["ip_range"] = value.IPAddress
// elem["label"] = ... - should be uncommented for the future release
log.Printf("flattenNetworks: parsed element %d - network_id %d, ip_range %q",
log.Debugf("flattenNetworks: parsed element %d - network_id %d, ip_range %s",
index, elem["network_id"].(int), value.IPAddress)
result[subindex] = elem
subindex += 1