@@ -166,6 +166,8 @@ func fore(key string, val interface{}, bk9 map[string]interface{}) {
ef = map[string]interface{}{}
+ log.Printf("fore key=%v val type=%T value=%#v kind=%v", key, val, val, reflect.ValueOf(val).Kind())
+
// get the value's type
vt := reflect.ValueOf(val).Elem()
2017/03/07 15:54:17 fore key=error.inner val type=*vboxwebsrv.SOAPFault value=&vboxwebsrv.SOAPFault{XMLName:xml.Name{Space:"http://schemas.xmlsoap.org/soap/envelope/", Local:"Fault"}, Code:"SOAP-ENV:Client", String:"", Actor:"", Detail:""} kind=ptr
2017/03/07 15:54:17 fore key=error.inner.XMLName val type=xml.Name value=xml.Name{Space:"http://schemas.xmlsoap.org/soap/envelope/", Local:"Fault"} kind=struct
panic: reflect: call of reflect.Value.Elem on struct Value
panic(0x1230140, 0xc4204002a0)
/usr/local/go/src/runtime/panic.go:458 +0x243
reflect.Value.Elem(0x12c7560, 0xc4204001a0, 0x99, 0xc4204001a0, 0x99, 0x433891)
/usr/local/go/src/reflect/value.go:734 +0x114
github.com/codedellemc/rexray/vendor/github.com/akutz/golf.fore(0xc420400240, 0x13, 0x12c7560, 0xc4204001a0, 0xc42045f800)
/go/src/github.com/codedellemc/rexray/vendor/github.com/akutz/golf/golf.go:172 +0x666
github.com/codedellemc/rexray/vendor/github.com/akutz/golf.fore(0xc42040db70, 0xb, 0x12238a0, 0xc4202f69c0, 0xc42045f800)
/go/src/github.com/codedellemc/rexray/vendor/github.com/akutz/golf/golf.go:217 +0x3f0
github.com/codedellemc/rexray/vendor/github.com/akutz/golf.fore(0x1478343, 0x5, 0x14109c0, 0xc4204000a0, 0xc42045f800)
/go/src/github.com/codedellemc/rexray/vendor/github.com/akutz/golf/golf.go:217 +0x3f0
github.com/codedellemc/rexray/vendor/github.com/akutz/golf.Fore(0x1478343, 0x5, 0x14109c0, 0xc4204000a0, 0xc420124701)
/go/src/github.com/codedellemc/rexray/vendor/github.com/akutz/golf/golf.go:146 +0xa8
github.com/codedellemc/rexray/vendor/github.com/akutz/golf/logrus.(*TextFormatter).printColored(0xc4202122c0, 0xc42021ac40, 0xc4202762c0, 0xc420400120, 0x2, 0x2, 0x1491b92, 0x19)
/go/src/github.com/codedellemc/rexray/vendor/github.com/akutz/golf/logrus/text_formatter.go:132 +0x514
github.com/codedellemc/rexray/vendor/github.com/akutz/golf/logrus.(*TextFormatter).Format(0xc4202122c0, 0xc4202762c0, 0x0, 0xc4204f3148, 0x4f064e, 0x12c26e0, 0xc420057560)
/go/src/github.com/codedellemc/rexray/vendor/github.com/akutz/golf/logrus/text_formatter.go:79 +0x760
github.com/codedellemc/rexray/vendor/github.com/Sirupsen/logrus.(*Entry).Reader(0xc4202762c0, 0xc4304e0a02, 0xc4202762c0, 0x0)