diff options
| author | chrislu <chris.lu@gmail.com> | 2022-01-17 01:53:56 -0800 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2022-01-17 01:53:56 -0800 |
| commit | fc0628c0381fcf571cf46ff699e2b79dc8c99bb0 (patch) | |
| tree | 4019ec66619e1b39bfd9e42ad48ae800a17678b1 /weed/command/mount_std.go | |
| parent | 1bd6d289d48ea3ae3c1461bf090ce0ffa6f2505f (diff) | |
| download | seaweedfs-fc0628c0381fcf571cf46ff699e2b79dc8c99bb0.tar.xz seaweedfs-fc0628c0381fcf571cf46ff699e2b79dc8c99bb0.zip | |
working
Diffstat (limited to 'weed/command/mount_std.go')
| -rw-r--r-- | weed/command/mount_std.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/weed/command/mount_std.go b/weed/command/mount_std.go index aebd04170..8f62b4ec9 100644 --- a/weed/command/mount_std.go +++ b/weed/command/mount_std.go @@ -6,6 +6,7 @@ package command import ( "context" "fmt" + "net/http" "os" "os/user" "path" @@ -34,6 +35,10 @@ import ( func runMount(cmd *Command, args []string) bool { + if *mountOptions.debug { + go http.ListenAndServe(fmt.Sprintf(":%d", *mountOptions.debugPort), nil) + } + grace.SetupProfiling(*mountCpuProfile, *mountMemProfile) if *mountReadRetryTime < time.Second { *mountReadRetryTime = time.Second |
