mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 操作系统平台版本信息
This commit is contained in:
parent
5caf532fd6
commit
7b87dcf0f6
4 changed files with 7 additions and 11 deletions
|
|
@ -46,11 +46,7 @@ var IsExiting = false
|
|||
var MobileOSVer string
|
||||
|
||||
func logBootInfo() {
|
||||
plat, platVer := GetOSPlatform()
|
||||
osInfo := plat
|
||||
if "" != platVer {
|
||||
osInfo += " " + platVer
|
||||
}
|
||||
plat := GetOSPlatform()
|
||||
logging.LogInfof("kernel is booting:\n"+
|
||||
" * ver [%s]\n"+
|
||||
" * arch [%s]\n"+
|
||||
|
|
@ -62,7 +58,7 @@ func logBootInfo() {
|
|||
" * container [%s]\n"+
|
||||
" * database [ver=%s]\n"+
|
||||
" * workspace directory [%s]",
|
||||
Ver, runtime.GOARCH, osInfo, os.Getpid(), Mode, WorkingDir, ReadOnly, Container, DatabaseVer, WorkspaceDir)
|
||||
Ver, runtime.GOARCH, plat, 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