From d45752960ac89fab4df4c6b18d250bdf050eadcd Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Wed, 29 Jul 2015 14:34:57 +1000 Subject: [PATCH] Use a custom logging for interruptOp, to aid in debugging. --- debug.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/debug.go b/debug.go index 52f49fa..8d5ec9e 100644 --- a/debug.go +++ b/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()