pull/639/head
hunterlong 2020-06-04 15:05:23 -07:00
parent cfdee4659b
commit d16023abe5
3 changed files with 8 additions and 9 deletions

View File

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

View File

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

View File

@ -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() {