Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterlong committed Jun 4, 2020
1 parent cfdee46 commit d16023a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
13 changes: 6 additions & 7 deletions utils/configs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit d16023a

Please sign in to comment.