mirror of https://github.com/bjdgyc/anylink.git
添加调试信息
This commit is contained in:
parent
3d88c617bf
commit
ac0b9ee4ee
|
@ -66,11 +66,12 @@ func SetSystem(w http.ResponseWriter, r *http.Request) {
|
|||
hi, _ := host.Info()
|
||||
l, _ := load.Avg()
|
||||
data["sys"] = map[string]interface{}{
|
||||
"goOs": runtime.GOOS,
|
||||
"goArch": runtime.GOARCH,
|
||||
"goVersion": runtime.Version(),
|
||||
"goroutine": runtime.NumGoroutine(),
|
||||
"appVersion": "v" + base.APP_VER,
|
||||
"goOs": runtime.GOOS,
|
||||
"goArch": runtime.GOARCH,
|
||||
"goVersion": runtime.Version(),
|
||||
"goroutine": runtime.NumGoroutine(),
|
||||
"appVersion": "v" + base.APP_VER,
|
||||
"appCommitId": base.CommitId,
|
||||
|
||||
"hostname": hi.Hostname,
|
||||
"platform": fmt.Sprintf("%v %v %v", hi.Platform, hi.PlatformFamily, hi.PlatformVersion),
|
||||
|
|
|
@ -49,9 +49,10 @@
|
|||
<span>运行环境</span>
|
||||
</div>
|
||||
<Cell left="软件版本" :right="system.sys.appVersion" divider/>
|
||||
<Cell left="GO版本" :right="system.sys.goOs" divider/>
|
||||
<Cell left="软件CommitId" :right="system.sys.appCommitId" divider/>
|
||||
<Cell left="GO系统" :right="system.sys.goOs" divider/>
|
||||
<Cell left="GoArch" :right="system.sys.goArch" divider/>
|
||||
<Cell left="GoVersion" :right="system.sys.goVersion" divider/>
|
||||
<Cell left="GO版本" :right="system.sys.goVersion" divider/>
|
||||
<Cell left="Goroutine" :right="system.sys.goroutine"/>
|
||||
</el-card>
|
||||
|
||||
|
|
Loading…
Reference in New Issue