Use a custom logging for interruptOp, to aid in debugging.

geesefs-0-30-9
Aaron Jacobs 2015-07-29 14:34:57 +10:00
parent 96b8ce71f0
commit d45752960a
1 changed files with 7 additions and 0 deletions

View File

@ -20,6 +20,13 @@ import (
) )
func describeRequest(op interface{}) (s string) { 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() v := reflect.ValueOf(op).Elem()
t := v.Type() t := v.Type()