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