1
This commit is contained in:
parent
5549c4e7ac
commit
924d5ca12a
7
app.go
7
app.go
@ -57,6 +57,7 @@ func (this *App_) Init() {
|
||||
this.loopCond = sync.NewCond(new(sync.Mutex))
|
||||
this.chGoLoopTimerExit = make(chan int)
|
||||
this.chGoLoopWait = make(chan int64)
|
||||
this.outputRuningLog()
|
||||
go this.goLoopTimer()
|
||||
}
|
||||
|
||||
@ -148,3 +149,9 @@ func (this *App_) schedule() {
|
||||
func (this *App_) NowUnix() int64 {
|
||||
return this.nowTime.Unix()
|
||||
}
|
||||
|
||||
func (this *App_) outputRuningLog() {
|
||||
for _, val := range q5.GetInitLogs() {
|
||||
SysLog().Info("%s", val)
|
||||
}
|
||||
}
|
||||
|
12
sysutils.go
12
sysutils.go
@ -1,13 +1,15 @@
|
||||
package f5
|
||||
|
||||
import "os"
|
||||
import "strings"
|
||||
import "q5"
|
||||
import (
|
||||
"os"
|
||||
"strings"
|
||||
"q5"
|
||||
)
|
||||
|
||||
const (
|
||||
ONLINE_ENV = 0
|
||||
TEST_ENV
|
||||
DEV_ENV
|
||||
TEST_ENV = iota
|
||||
DEV_ENV = iota
|
||||
)
|
||||
|
||||
var serverEnv int32
|
||||
|
Loading…
x
Reference in New Issue
Block a user