mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-22 00:06:09 +01:00
🎨 记录操作系统平台
This commit is contained in:
parent
2a4fc32e50
commit
08641595ae
4 changed files with 14 additions and 9 deletions
|
|
@ -46,6 +46,11 @@ const (
|
|||
var IsExiting = false
|
||||
|
||||
func logBootInfo() {
|
||||
plat, platVer := GetOSPlatform()
|
||||
osInfo := plat
|
||||
if "" != platVer {
|
||||
osInfo += "/" + platVer
|
||||
}
|
||||
logging.LogInfof("kernel is booting:\n"+
|
||||
" * ver [%s]\n"+
|
||||
" * arch [%s]\n"+
|
||||
|
|
@ -57,7 +62,7 @@ func logBootInfo() {
|
|||
" * container [%s]\n"+
|
||||
" * database [ver=%s]\n"+
|
||||
" * workspace directory [%s]",
|
||||
Ver, runtime.GOARCH, GetOSPlatform(), os.Getpid(), Mode, WorkingDir, ReadOnly, Container, DatabaseVer, WorkspaceDir)
|
||||
Ver, runtime.GOARCH, osInfo, os.Getpid(), Mode, WorkingDir, ReadOnly, Container, DatabaseVer, WorkspaceDir)
|
||||
}
|
||||
|
||||
func IsMutexLocked(m *sync.Mutex) bool {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue