2014-01-14 17:04:36 +00:00
|
|
|
package fuse
|
|
|
|
|
|
|
|
import (
|
|
|
|
"runtime"
|
|
|
|
)
|
|
|
|
|
|
|
|
func stack() string {
|
|
|
|
buf := make([]byte, 1024)
|
|
|
|
return string(buf[:runtime.Stack(buf, false)])
|
|
|
|
}
|
|
|
|
|
|
|
|
func nop(msg interface{}) {}
|
|
|
|
|
2014-05-12 19:08:24 +00:00
|
|
|
var Debug func(msg interface{}) = nop
|