Use a custom logging for interruptOp, to aid in debugging.
parent
96b8ce71f0
commit
d45752960a
7
debug.go
7
debug.go
|
@ -20,6 +20,13 @@ import (
|
|||
)
|
||||
|
||||
func describeRequest(op interface{}) (s string) {
|
||||
// Handle special cases with custom formatting.
|
||||
switch typed := op.(type) {
|
||||
case *interruptOp:
|
||||
s = fmt.Sprintf("interruptOp(fuseid=0x%08x)", typed.FuseID)
|
||||
return
|
||||
}
|
||||
|
||||
v := reflect.ValueOf(op).Elem()
|
||||
t := v.Type()
|
||||
|
||||
|
|
Loading…
Reference in New Issue