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.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)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
12
sysutils.go
12
sysutils.go
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user