mirror of https://github.com/statping/statping
tests
parent
cfdee4659b
commit
d16023abe5
|
@ -118,7 +118,7 @@ jobs:
|
||||||
DB_CONN: sqlite3
|
DB_CONN: sqlite3
|
||||||
STATPING_DIR: ${{ github.workspace }}
|
STATPING_DIR: ${{ github.workspace }}
|
||||||
API_SECRET: demopassword123
|
API_SECRET: demopassword123
|
||||||
DISABLE_LOGS: true
|
DISABLE_LOGS: false
|
||||||
ALLOW_REPORTS: true
|
ALLOW_REPORTS: true
|
||||||
PUSH_REQUEST: true
|
PUSH_REQUEST: true
|
||||||
|
|
||||||
|
|
|
@ -114,7 +114,7 @@ jobs:
|
||||||
DB_CONN: sqlite3
|
DB_CONN: sqlite3
|
||||||
STATPING_DIR: ${{ github.workspace }}
|
STATPING_DIR: ${{ github.workspace }}
|
||||||
API_SECRET: demopassword123
|
API_SECRET: demopassword123
|
||||||
DISABLE_LOGS: true
|
DISABLE_LOGS: false
|
||||||
ALLOW_REPORTS: true
|
ALLOW_REPORTS: true
|
||||||
COVERALLS: ${{ secrets.COVERALLS }}
|
COVERALLS: ${{ secrets.COVERALLS }}
|
||||||
DISCORD_URL: ${{ secrets.DISCORD_URL }}
|
DISCORD_URL: ${{ secrets.DISCORD_URL }}
|
||||||
|
|
|
@ -31,15 +31,14 @@ func initCLI() {
|
||||||
Params.Set("VERSION", version)
|
Params.Set("VERSION", version)
|
||||||
|
|
||||||
// check if logs are disabled
|
// check if logs are disabled
|
||||||
disableLogs = Params.GetBool("DISABLE_LOGS")
|
if !Params.GetBool("DISABLE_LOGS") {
|
||||||
if disableLogs {
|
|
||||||
Log.Out = ioutil.Discard
|
Log.Out = ioutil.Discard
|
||||||
}
|
|
||||||
|
|
||||||
Log.Debugln("current working directory: ", Directory)
|
Log.Debugln("current working directory: ", Directory)
|
||||||
Log.AddHook(new(hook))
|
Log.AddHook(new(hook))
|
||||||
Log.SetNoLock()
|
Log.SetNoLock()
|
||||||
checkVerboseMode()
|
checkVerboseMode()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func setDefaults() {
|
func setDefaults() {
|
||||||
|
|
Loading…
Reference in New Issue