This commit is contained in:
aozhiwei 2020-10-26 19:45:22 +08:00
parent 5549c4e7ac
commit 924d5ca12a
2 changed files with 14 additions and 5 deletions

7
app.go
View File

@ -57,6 +57,7 @@ func (this *App_) Init() {
this.loopCond = sync.NewCond(new(sync.Mutex)) this.loopCond = sync.NewCond(new(sync.Mutex))
this.chGoLoopTimerExit = make(chan int) this.chGoLoopTimerExit = make(chan int)
this.chGoLoopWait = make(chan int64) this.chGoLoopWait = make(chan int64)
this.outputRuningLog()
go this.goLoopTimer() go this.goLoopTimer()
} }
@ -148,3 +149,9 @@ func (this *App_) schedule() {
func (this *App_) NowUnix() int64 { func (this *App_) NowUnix() int64 {
return this.nowTime.Unix() return this.nowTime.Unix()
} }
func (this *App_) outputRuningLog() {
for _, val := range q5.GetInitLogs() {
SysLog().Info("%s", val)
}
}

View File

@ -1,13 +1,15 @@
package f5 package f5
import "os" import (
import "strings" "os"
import "q5" "strings"
"q5"
)
const ( const (
ONLINE_ENV = 0 ONLINE_ENV = 0
TEST_ENV TEST_ENV = iota
DEV_ENV DEV_ENV = iota
) )
var serverEnv int32 var serverEnv int32