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

View File

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

View File

@ -31,16 +31,15 @@ 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() {
var err error var err error