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.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)
}
}

View File

@ -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